This commit is contained in:
midoks 2023-10-24 16:35:58 +08:00
parent 52dc2210a4
commit fdf0c4e02f
2 changed files with 2 additions and 5 deletions

View File

@ -288,7 +288,7 @@ def initdUinstall():
def runLog():
return getServerDir() + '/data/redis.log'
return getServerDir() + '/' + getPluginName() + '.log'
def getRedisConfInfo():
@ -376,9 +376,5 @@ if __name__ == "__main__":
print(getConf())
elif func == 'run_log':
print(runLog())
elif func == 'get_redis_conf':
print(getRedisConf())
elif func == 'submit_redis_conf':
print(submitRedisConf())
else:
print('error')

View File

@ -7,6 +7,7 @@ Type=forking
ExecStart={$SERVER_PATH}/keepalived/sbin/keepalived -D
ExecReload=/bin/kill -USR1 $MAINPID
Restart=on-failure
StandardOutput={$SERVER_PATH}/keepalived/keepalived.log
[Install]
WantedBy=multi-user.target