Compare commits
No commits in common. "master" and "959f06d5aa04cd1c1b13d06962987b8298599755" have entirely different histories.
master
...
959f06d5aa
@ -1,28 +0,0 @@
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www
|
||||
Group=www
|
||||
|
||||
# 休眠10s,等待数据库启动, 否则服务起不来
|
||||
ExecStart=nohup /home/www/htdocs/git-hook/git_hook --config_path=/home/www/etc/git-hook >> /dev/null &
|
||||
ExecStop=ps -ef | grep git_hook | grep -v grep | awk '{print $2}' | xargs kill -9
|
||||
|
||||
|
||||
# Give a reasonable amount of time for the server to start up/shut down
|
||||
TimeoutSec=300
|
||||
|
||||
# Place temp files in a secure directory, not /tmp
|
||||
PrivateTmp=true
|
||||
# 后台运行
|
||||
Restart=on-failure
|
||||
|
||||
RestartPreventExitStatus=1
|
||||
|
||||
# Sets open_files_limit
|
||||
LimitNOFILE = 10000
|
||||
|
||||
# Set enviroment variable MYSQLD_PARENT_PID. This is required for SQL restart command.
|
||||
Environment=MYSQLD_PARENT_PID=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user