diff options
Diffstat (limited to 'osqueryd.service')
-rw-r--r-- | osqueryd.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osqueryd.service b/osqueryd.service index 5258f6d199c1..4c4cbeaba791 100644 --- a/osqueryd.service +++ b/osqueryd.service @@ -6,6 +6,7 @@ After=network.service syslog.service TimeoutStartSec=0 EnvironmentFile=/etc/conf.d/osqueryd ExecStartPre=/bin/sh -c "if [ ! -f $FLAG_FILE ]; then touch $FLAG_FILE; fi" +ExecStartPre=/bin/sh -c "if [ -f $OLD_PIDFILE ]; then mv $OLD_PIDFILE $PIDFILE; fi" ExecStart=/usr/bin/osqueryd \ --flagfile $FLAG_FILE \ --config_path $CONFIG_FILE |