don't exit with bad status code
This commit is contained in:
parent
fe477300aa
commit
186a68a0ad
|
@ -13,11 +13,16 @@ rm "$my_app_dist/$my_app_systemd_service.2"
|
||||||
safe_copy_config "$my_app_dist/$my_app_systemd_service" "$my_root/$my_app_systemd_service"
|
safe_copy_config "$my_app_dist/$my_app_systemd_service" "$my_root/$my_app_systemd_service"
|
||||||
safe_copy_config "$my_app_dist/$my_app_systemd_tmpfiles" "$my_root/$my_app_systemd_tmpfiles"
|
safe_copy_config "$my_app_dist/$my_app_systemd_tmpfiles" "$my_root/$my_app_systemd_tmpfiles"
|
||||||
|
|
||||||
$sudo_cmd systemctl stop "${my_app_name}.service" >/dev/null 2>/dev/null
|
$sudo_cmd systemctl stop "${my_app_name}.service" >/dev/null 2>/dev/null || true
|
||||||
$sudo_cmd systemctl daemon-reload
|
$sudo_cmd systemctl daemon-reload
|
||||||
$sudo_cmd systemctl start "${my_app_name}.service"
|
$sudo_cmd systemctl start "${my_app_name}.service"
|
||||||
$sudo_cmd systemctl enable "${my_app_name}.service"
|
$sudo_cmd systemctl enable "${my_app_name}.service"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Fun systemd commands to remember:"
|
||||||
|
echo " $sudo_cmd systemctl daemon-reload"
|
||||||
|
echo " $sudo_cmd systemctl restart $my_app_name.service"
|
||||||
|
echo ""
|
||||||
echo "$my_app_name started with systemctl, check its status like so:"
|
echo "$my_app_name started with systemctl, check its status like so:"
|
||||||
echo " $sudo_cmd systemctl status $my_app_name"
|
echo " $sudo_cmd systemctl status $my_app_name"
|
||||||
echo " $sudo_cmd journalctl -xe -u $my_app_name"
|
echo " $sudo_cmd journalctl -xe -u $my_app_name"
|
||||||
|
|
Loading…
Reference in New Issue