Separate UCE builds from service startup
This commit is contained in:
parent
b0d475e777
commit
c9f43d8279
@ -52,7 +52,13 @@ case "$action" in
|
||||
install_unit
|
||||
systemctl enable "$UNIT_NAME"
|
||||
;;
|
||||
start|stop|restart|status)
|
||||
restart)
|
||||
if [[ "$REPO_ROOT" != "/usr/lib/uce" && "$REPO_ROOT" != "/opt/uce" ]]; then
|
||||
"$REPO_ROOT/scripts/build_linux.sh"
|
||||
fi
|
||||
systemctl restart "$UNIT_NAME"
|
||||
;;
|
||||
start|stop|status)
|
||||
systemctl "$action" "$UNIT_NAME"
|
||||
;;
|
||||
logs)
|
||||
|
||||
@ -12,7 +12,6 @@ RuntimeDirectoryPreserve=yes
|
||||
StateDirectory=uce
|
||||
CacheDirectory=uce
|
||||
ExecStartPre=/usr/bin/mkdir -p /var/cache/uce/work /var/lib/uce/uploads /var/lib/uce/sessions
|
||||
ExecStartPre=/usr/bin/bash /Code/uce.openfu.com/uce/scripts/build_linux.sh
|
||||
ExecStart=/Code/uce.openfu.com/uce/bin/uce_fastcgi.linux.bin
|
||||
ExecStartPost=/usr/bin/bash /Code/uce.openfu.com/uce/scripts/systemd/wait-ready.sh
|
||||
Restart=always
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user