mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
19 lines
486 B
Desktop File
19 lines
486 B
Desktop File
[Unit]
|
|
Description=The osquery Daemon
|
|
After=network.service syslog.service
|
|
|
|
[Service]
|
|
TimeoutStartSec=0
|
|
EnvironmentFile=/etc/sysconfig/osqueryd
|
|
ExecStartPre=/bin/sh -c "if [ ! -f $FLAG_FILE ]; then touch $FLAG_FILE; fi"
|
|
ExecStartPre=/bin/sh -c "if [ -f $LOCAL_PIDFILE ]; then mv $LOCAL_PIDFILE $PIDFILE; fi"
|
|
ExecStart=/usr/bin/osqueryd \
|
|
--flagfile $FLAG_FILE \
|
|
--config_path $CONFIG_FILE
|
|
Restart=on-failure
|
|
KillMode=process
|
|
KillSignal=SIGTERM
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|