mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
fixed: documentation
git-svn-id: https://svn.fhem.de/fhem/trunk@17185 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d7e54e36a2
commit
970abd7187
@ -246,6 +246,11 @@ sub watchdog_client_NotifySystemD($$) {
|
||||
NotifyAccess=all<br/>
|
||||
User=fhem<br/>
|
||||
Group=dialout<br/>
|
||||
# Run ExecStartPre with root-permissions<br/>
|
||||
PermissionsStartOnly=true<br/>
|
||||
ExecStartPre=-/bin/mkdir /var/run/fhem<br/>
|
||||
ExecStartPre=/bin/chown -R fhem:dialout /var/run/fhem<br/>
|
||||
# Run ExecStart with defined user and group<br/>
|
||||
WorkingDirectory=/opt/fhem<br/>
|
||||
ExecStart=/usr/bin/perl fhem.pl fhem.cfg<br/>
|
||||
#ExecStart=/usr/bin/perl fhem.pl configDB<br/>
|
||||
@ -257,7 +262,7 @@ sub watchdog_client_NotifySystemD($$) {
|
||||
Restart=on-failure<br/>
|
||||
RestartSec=3<br/>
|
||||
WatchdogSec=180<br/>
|
||||
PIDFile=/opt/fhem/log/fhem.pid<br/>
|
||||
PIDFile=/var/run/fhem/fhem.pid<br/>
|
||||
<br/>
|
||||
[Install]<br/>
|
||||
WantedBy=multi-user.target<br/>
|
||||
@ -267,8 +272,10 @@ sub watchdog_client_NotifySystemD($$) {
|
||||
Anschliessend kann FHEM mit folgendem Befehl gestartet werden: "sudo systemctl start fhem.service".
|
||||
<br/>
|
||||
Wenn in dem Script "Type=notify" verwendet wird, muss global Attribute "nofork=1" gesetzt sein.<br/>
|
||||
<code>attr global nofork 1</code><br/>
|
||||
Bei "Type=forking" muss in Script der korrekte Pfad zu dem PID-Datei angegeben werden,
|
||||
diese Datei muss auch in FHEM mit dem global Attribute "pidfilename" aktiviert sein.<br/>
|
||||
<code>attr global pidfilename /var/run/fhem/fhem.pid</code><br/>
|
||||
</p>
|
||||
|
||||
<a name="MQTTdefine"></a>
|
||||
@ -307,6 +314,11 @@ sub watchdog_client_NotifySystemD($$) {
|
||||
NotifyAccess=all<br/>
|
||||
User=fhem<br/>
|
||||
Group=dialout<br/>
|
||||
# Run ExecStartPre with root-permissions<br/>
|
||||
PermissionsStartOnly=true<br/>
|
||||
ExecStartPre=-/bin/mkdir /var/run/fhem<br/>
|
||||
ExecStartPre=/bin/chown -R fhem:dialout /var/run/fhem<br/>
|
||||
# Run ExecStart with defined user and group<br/>
|
||||
WorkingDirectory=/opt/fhem<br/>
|
||||
ExecStart=/usr/bin/perl fhem.pl fhem.cfg<br/>
|
||||
#ExecStart=/usr/bin/perl fhem.pl configDB<br/>
|
||||
@ -318,7 +330,7 @@ sub watchdog_client_NotifySystemD($$) {
|
||||
Restart=on-failure<br/>
|
||||
RestartSec=3<br/>
|
||||
WatchdogSec=180<br/>
|
||||
PIDFile=/opt/fhem/log/fhem.pid<br/>
|
||||
PIDFile=/var/run/fhem/fhem.pid<br/>
|
||||
<br/>
|
||||
[Install]<br/>
|
||||
WantedBy=multi-user.target<br/>
|
||||
@ -327,8 +339,10 @@ sub watchdog_client_NotifySystemD($$) {
|
||||
Use "sudo systemctl daemon-reload" to reload systemd configuration.
|
||||
Start fhem with: "sudo systemctl start fhem.service".
|
||||
<br/>
|
||||
If you like to use Type=notify, you must set fhem global attribute nofork=1.<br/>
|
||||
If you use Type=forking, please set fhem global pidfilename.<br/>
|
||||
If you like to use Type=notify, you must set fhem global attribute nofork=1.<br/>
|
||||
<code>attr global nofork 1</code><br/>
|
||||
If you use Type=forking, please set fhem global pidfilename.<br/>
|
||||
<code>attr global pidfilename /var/run/fhem/fhem.pid</code><br/>
|
||||
</p>
|
||||
|
||||
<a name="MQTTdefine"></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user