From: Antonio Tessarolo Date: Fri, 10 Apr 2020 14:17:09 +0000 (+0200) Subject: Changed default .pid path from /var/run/tvheadend.pid to /run/tvheadend.pid to follow... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e59b92e9f317b758e69fe5e0d0037d44d2d0a33a;p=thirdparty%2Ftvheadend.git Changed default .pid path from /var/run/tvheadend.pid to /run/tvheadend.pid to follow "new" FSH 3 standard --- diff --git a/debian/tvheadend.service b/debian/tvheadend.service index 74aaaac7b..f0fee349f 100644 --- a/debian/tvheadend.service +++ b/debian/tvheadend.service @@ -9,8 +9,8 @@ After=auditd.service syslog.target network.target local-fs.target [Service] EnvironmentFile=/etc/default/tvheadend -ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid $OPTIONS -PIDFile=/var/run/tvheadend.pid +ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid $OPTIONS +PIDFile=/run/tvheadend.pid Type=forking Restart=on-failure RestartSec=54s diff --git a/man/tvheadend.1 b/man/tvheadend.1 index 669b3d443..fff88e997 100644 --- a/man/tvheadend.1 +++ b/man/tvheadend.1 @@ -45,7 +45,7 @@ use the uid of 1 ('daemon' on most systems). Run as group \fR\fIgroupname\fR. Only applicable if daemonizing. Default is to use the 'video' group. If the 'video' group does not exist, gid 1 ('daemon') will be used. .TP \fB\-p\fR \fIpidpath\fR, \fB\-\-pid \fR\fIpidpath\fR -Specify alternative PID path file (default /var/run/tvheadend.pid). +Specify alternative PID path file (default /run/tvheadend.pid). .TP \fB\-C\fR, \fB\-\-firstrun\fR If no user account exist then create one with no username and no @@ -196,7 +196,7 @@ is run as a system daemon a dedicated user needs to be created and Tvheadend should be launched with the '-u' argument. Also notice that XMLTV will read/ store cache and configuration from the same user home directory. .PP -If daemonizing, Tvheadend will writes its pid in /var/run/tvheadend.pid +If daemonizing, Tvheadend will writes its pid in /run/tvheadend.pid .SH "AUTHOR" .B Tvheadend and this man page is maintained by the Tvheadend team. Please see the diff --git a/rpm/tvheadend.service b/rpm/tvheadend.service index bdcd7270e..c2ae8663f 100644 --- a/rpm/tvheadend.service +++ b/rpm/tvheadend.service @@ -9,8 +9,8 @@ After=auditd.service syslog.target network.target local-fs.target [Service] EnvironmentFile=/etc/sysconfig/tvheadend -ExecStart=/usr/bin/tvheadend -f -p /var/run/tvheadend.pid $OPTIONS -PIDFile=/var/run/tvheadend.pid +ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid $OPTIONS +PIDFile=/run/tvheadend.pid Type=forking Restart=on-failure RestartSec=54s diff --git a/src/main.c b/src/main.c index feb8e3025..c10392a5a 100644 --- a/src/main.c +++ b/src/main.c @@ -862,7 +862,7 @@ main(int argc, char **argv) *opt_logpath = NULL, *opt_log_debug = NULL, *opt_log_trace = NULL, - *opt_pidpath = "/var/run/tvheadend.pid", + *opt_pidpath = "/run/tvheadend.pid", #if ENABLE_LINUXDVB *opt_dvb_adapters = NULL, #endif