diff --git a/README.md b/README.md index 5852fbd..2770693 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/mbpfan.dinit b/mbpfan.dinit new file mode 100644 index 0000000..cb2c3a7 --- /dev/null +++ b/mbpfan.dinit @@ -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 +