Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dinit service definition, update readme with dinit instructions… #250

Merged
merged 1 commit into from
Apr 3, 2022
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