diff -ur spacenavd-1.0.orig/contrib/systemd/spacenavd.service spacenavd-1.0/contrib/systemd/spacenavd.service --- spacenavd-1.0.orig/contrib/systemd/spacenavd.service 2022-04-25 16:03:28.338795433 +0200 +++ spacenavd-1.0/contrib/systemd/spacenavd.service 2022-04-25 16:40:21.644561051 +0200 @@ -4,8 +4,8 @@ [Service] Type=forking -PIDFile=/var/run/spnavd.pid -ExecStart=/usr/local/bin/spacenavd +PIDFile=/run/spnavd.pid +ExecStart=/usr/sbin/spacenavd StandardError=syslog [Install] diff -ur spacenavd-1.0.orig/init_script spacenavd-1.0/init_script --- spacenavd-1.0.orig/init_script 2022-04-25 16:02:21.655184661 +0200 +++ spacenavd-1.0/init_script 2022-04-25 16:16:16.866098885 +0200 @@ -30,7 +30,7 @@ stop) echo 'Stopping spacenavd daemon' # detect daemon's process id - pid=`cat /var/run/spnavd.pid 2>/dev/null` + pid=`cat /run/spnavd.pid 2>/dev/null` if [ $? != 0 ]; then pid=`ps -e | grep spacenavd | awk '{ print $1 }'` if [ -z "$pid" ]; then diff -ur spacenavd-1.0.orig/spnavd_ctl spacenavd-1.0/spnavd_ctl --- spacenavd-1.0.orig/spnavd_ctl 2022-04-25 16:02:21.655184661 +0200 +++ spacenavd-1.0/spnavd_ctl 2022-04-25 16:16:41.818036452 +0200 @@ -32,7 +32,7 @@ fi # detect daemon's process id -pid=`cat /var/run/spnavd.pid 2>/dev/null` +pid=`cat /run/spnavd.pid 2>/dev/null` if [ $? != 0 ]; then pid=`ps -e | grep spacenavd | awk '{ print $1 }'` if [ -z "$pid" ]; then diff -ur spacenavd-1.0.orig/src/spnavd.h spacenavd-1.0/src/spnavd.h --- spacenavd-1.0.orig/src/spnavd.h 2022-04-25 16:02:21.655184661 +0200 +++ spacenavd-1.0/src/spnavd.h 2022-04-25 16:17:04.797947800 +0200 @@ -26,8 +26,8 @@ #define DEF_CFGFILE CFGDIR "/spnavrc" #define DEF_LOGFILE "/var/log/spnavd.log" -#define SOCK_NAME "/var/run/spnav.sock" -#define PIDFILE "/var/run/spnavd.pid" +#define SOCK_NAME "/run/spnav.sock" +#define PIDFILE "/run/spnavd.pid" #define SYSLOG_ID "spnavd" /* Multiple devices support */