diff --git a/README.md b/README.md index 433dff5..1527a0d 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,6 @@ As a special bonus, a service file for systemd is also included. To use it, execute the following (as root): sudo cp mbpfan.service /usr/lib/systemd/system - sudo ln -s /usr/lib/systemd/system/mbpfan.service /etc/systemd/system/mbpfan.service sudo systemctl daemon-reload sudo systemctl start mbpfan.service diff --git a/mbpfan.service b/mbpfan.service index d440e0d..f2983ea 100644 --- a/mbpfan.service +++ b/mbpfan.service @@ -1,12 +1,14 @@ [Unit] -Description=Start the mbpfan daemon +Description=A fan manager daemon for MacBook Pro After=syslog.target -After=remote-fs.target +After=sysinit.target [Service] -ExecStart=/usr/sbin/mbpfan -Type=forking +Type=simple +ExecStart=/usr/sbin/mbpfan -fv +ExecReload=/usr/bin/kill -HUP $MAINPID +PIDFile=/var/run/mbpfan.pid Restart=always [Install] -WantedBy=multi-user.target +WantedBy=sysinit.target