Create dinit service definition, update readme to include dinit instructions
This commit is contained in:
parent
2dd04d5fb5
commit
79813060f4
2 changed files with 14 additions and 0 deletions
|
@ -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
7
mbpfan.dinit
Normal 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
|
||||
|
Loading…
Reference in a new issue