2018-06-26 05:37:51 +00:00
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo "=============================================="
|
|
|
|
echo " Launcher Configuration "
|
|
|
|
echo "=============================================="
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
my_stopper=""
|
|
|
|
if [ "systemd" == "$my_system_launcher" ]; then
|
|
|
|
|
|
|
|
my_stopper="${real_sudo_cmde}systemctl stop $my_app"
|
|
|
|
echo "Edit the config and restart, if desired:"
|
|
|
|
echo ""
|
2018-06-27 09:21:44 +00:00
|
|
|
echo " ${real_sudo_cmde}$my_edit $TELEBITD_CONFIG"
|
2018-06-26 05:37:51 +00:00
|
|
|
echo " ${real_sudo_cmde}systemctl restart $my_app"
|
|
|
|
echo ""
|
|
|
|
echo "Or disabled the service and start manually:"
|
|
|
|
echo ""
|
|
|
|
echo " ${real_sudo_cmde}systemctl stop $my_app"
|
|
|
|
echo " ${real_sudo_cmde}systemctl disable $my_app"
|
2018-06-27 09:21:44 +00:00
|
|
|
echo " $my_daemon --config $TELEBITD_CONFIG"
|
2018-06-26 05:37:51 +00:00
|
|
|
|
|
|
|
elif [ "launchd" == "$my_system_launcher" ]; then
|
|
|
|
|
|
|
|
my_stopper="${real_sudo_cmde}launchctl unload $my_app_launchd_service"
|
|
|
|
echo "Edit the config and restart, if desired:"
|
|
|
|
echo ""
|
2018-06-27 09:21:44 +00:00
|
|
|
echo " ${real_sudo_cmde}$my_edit $TELEBITD_CONFIG"
|
2018-06-26 05:37:51 +00:00
|
|
|
echo " ${real_sudo_cmde}launchctl unload $my_app_launchd_service"
|
|
|
|
echo " ${real_sudo_cmde}launchctl load -w $my_app_launchd_service"
|
|
|
|
echo ""
|
|
|
|
echo "Or disabled the service and start manually:"
|
|
|
|
echo ""
|
|
|
|
echo " ${real_sudo_cmde}launchctl unload -w $my_app_launchd_service"
|
2018-06-27 09:21:44 +00:00
|
|
|
echo " $my_daemon --config $TELEBITD_CONFIG"
|
2018-06-26 05:37:51 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
my_stopper="not started"
|
|
|
|
echo ""
|
|
|
|
echo "Run the service manually (we couldn't detect your system service to do that automatically):"
|
|
|
|
echo ""
|
2018-06-27 09:21:44 +00:00
|
|
|
echo " $my_daemon --config $TELEBITD_CONFIG"
|
2018-06-26 05:37:51 +00:00
|
|
|
echo " $my_app --config $TELEBIT_CONFIG"
|
|
|
|
|
|
|
|
fi
|