2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

init-scripts/osx: Forum #81485

git-svn-id: https://svn.fhem.de/fhem/trunk@15673 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-12-23 16:12:53 +00:00
parent ad6571f017
commit 0732cf8600
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,11 @@
Install:
cp de.fhem.plist /Library/LaunchDaemon/de.fhem.plist
Activate:
launchctl load /Library/LaunchDaemon/de.fhem.plist
Start
launchctl start de.fhem
See also Forum #81485

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"[http://www.apple.com/DTDs/PropertyList-1.0.dtd http://www.apple.com/DTDs/PropertyList-1.0.dtd]">
<plist version="1.0">
<dict>
<key>Label</key>
<string>de.fhem</string>
<key>WorkingDirectory</key>
<string>/opt/fhem</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/perl</string>
<string>/opt/fhem/fhem.pl</string>
<string>/opt/fhem/fhem.cfg</string>
</array>
<key>StandardOutPath</key>
<string>/opt/fhem/log/start.log</string>
<key>StandardErrorPath</key>
<string>/opt/fhem/log/start.log</string>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>fhem</string>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>