Created
August 25, 2017 15:39
-
-
Save franzramadhan/7fd9ab13897e32f9a2413737116a6e6e to your computer and use it in GitHub Desktop.
enable pid for services in Centos 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/ntp.conf | |
pidfile /var/run/ntp/ntp.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#mkdir /var/run/redis/redis.pid | |
#chown redis:redis /var/run/redis | |
#edit /etc/redis.conf | |
daemonize yes | |
pidfile /var/run/redis/redis.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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