修改RPM程序安装路径

支持日志定时删除
This commit is contained in:
fengweihao
2020-09-11 14:29:29 +08:00
parent f507b3ea1c
commit f5b162f5d6
12 changed files with 33 additions and 16 deletions

View File

@@ -3,8 +3,8 @@ Description=Certificate Signing Engine
After=redis.service
[Service]
WorkingDirectory=/home/tsg/certstore
ExecStart=/home/tsg/certstore/certstore
WorkingDirectory=/opt/tsg/certstore
ExecStart=/opt/tsg/certstore/bin/certstore
Restart=always
RestartSec=5s

View File

@@ -0,0 +1,5 @@
#Type Path Mode User Group Age Argument
d /var/log/certstore/ 0755 - - 7d -
d /run/certstore/foreign_files 0755 - - - -
L /opt/tsg/certstore/logs - - - - /var/log/certstore
L /opt/tsg/certstore/foreign_files - - - - /run/certstore/foreign_files