Skip to content

Commit 7981306

Browse files
nbfritchgaul
authored andcommitted
Create dinit service definition, update readme to include dinit instructions
1 parent 2dd04d5 commit 7981306

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@ execute the following (as root):
223223
sudo systemctl daemon-reload
224224
sudo systemctl start mbpfan.service
225225

226+
**dinit**
227+
A [dinit](https://github.com/davmac314/dinit) service definition is also included. To use it, execute the following:
228+
229+
sudo cp mbpfan.dinit /etc/dinit.d/mbpfan
230+
sudo dinitctl enable mbpfan
231+
sudo dinitctl start mbpfan
232+
226233
## Usage
227234

228235
Usage: ./mbpfan OPTION(S)

mbpfan.dinit

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
type = bgprocess
2+
command = /usr/bin/mbpfan
3+
restart = true
4+
logfile = /var/log/dinit/mbpfan.log
5+
waits-for = loginready
6+
pid-file = /var/run/mbpfan.pid
7+

0 commit comments

Comments
 (0)