https://github.com/cosmictoast/init
A collection of initscripts for various systems that I wrote.
https://github.com/cosmictoast/init
init initscript openrc runit systemd
Last synced: 7 months ago
JSON representation
A collection of initscripts for various systems that I wrote.
- Host: GitHub
- URL: https://github.com/cosmictoast/init
- Owner: CosmicToast
- License: unlicense
- Created: 2018-10-24T00:56:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T23:59:58.000Z (over 4 years ago)
- Last Synced: 2025-01-11T07:13:07.871Z (9 months ago)
- Topics: init, initscript, openrc, runit, systemd
- Language: Shell
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Toast's Init Scripts
====================Various convenience init scripts, organized by-service.
## OpenRC
Scripts will be named `$NAME.initd` and `$NAME.confd`.
`$NAME.confd` should generally be optional.
If it isn't, the file will mention this (e.g "this file is required").These files should go into `/etc/init.d/$NAME` and `/etc/conf.d/$NAME` respectively.
`$NAME` will generally just be the service name.Some init scripts can be linked to `$NAME.var`.
If you notice `RC_SVCNAME` mentioned it means that functionality is being used/provided.They should go into `/etc/init.d/$NAME` and `/etc/conf.d/$NAME` respectively.
By default, init scripts only include functionality everyone will want.
This means that by default, the services will run as root.
See the `conf.d` files for customization (including of that).## Systemd
Scripts will be named `$NAME.service`.
Sometimes, a `$NAME2.timer` may accompany them if appropriate.
All of these should go either in `/etc/systemd/system`, `/etc/systemd/user` or `~/.config/systemd/user` directories (depending). Assume the first unless otherwise specified.
Sometimes, they will use an external configuration file. In this case, it will generally be mentioned.