Skip to content

Instantly share code, notes, and snippets.

@franzramadhan
Created August 25, 2017 15:39
Show Gist options
  • Save franzramadhan/7fd9ab13897e32f9a2413737116a6e6e to your computer and use it in GitHub Desktop.
Save franzramadhan/7fd9ab13897e32f9a2413737116a6e6e to your computer and use it in GitHub Desktop.
enable pid for services in Centos 7
#/etc/ntp.conf
pidfile /var/run/ntp/ntp.pid
#mkdir /var/run/redis/redis.pid
#chown redis:redis /var/run/redis
#edit /etc/redis.conf
daemonize yes
pidfile /var/run/redis/redis.pid
# /etc/sysconfig/snmpd
# snmpd command line options
# '-f' is implicitly added by snmpd systemd unit file
# OPTIONS="-LS0-6d"
OPTIONS="-p /var/run/snmpd.pid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment