Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions mbpfan.dinit
Original file line number Diff line number Diff line change
@@ -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