Create dinit service definition, update readme to include dinit instructions

This commit is contained in:
Nathan Fritch 2022-04-02 09:42:31 -05:00 committed by Andrew Gaul
parent 2dd04d5fb5
commit 79813060f4
2 changed files with 14 additions and 0 deletions

View file

@ -223,6 +223,13 @@ execute the following (as root):
sudo systemctl daemon-reload
sudo systemctl start mbpfan.service
**dinit**
A [dinit](https://github.com/davmac314/dinit) service definition is also included. To use it, execute the following:
sudo cp mbpfan.dinit /etc/dinit.d/mbpfan
sudo dinitctl enable mbpfan
sudo dinitctl start mbpfan
## Usage
Usage: ./mbpfan OPTION(S)

7
mbpfan.dinit Normal file
View file

@ -0,0 +1,7 @@
type = bgprocess
command = /usr/bin/mbpfan
restart = true
logfile = /var/log/dinit/mbpfan.log
waits-for = loginready
pid-file = /var/run/mbpfan.pid