Commit bb667e04 authored by Bob Mottram's avatar Bob Mottram

Add tty settings to daemon

parent c9ecbdbd
......@@ -443,6 +443,10 @@ if [ "$DAEMON" ]; then
echo "User=${daemon_user}";
echo "WorkingDirectory=/etc/${APP_NAME}";
echo "ExecStart=/usr/local/bin/${APP_NAME} -d \"$BUILD_DIR\" -r \"$REPO\" -b \"$BRANCH\" -s \"$BUILD_SCRIPT\" -w \"$WEB_FILE\" -x \"$XMPP_ADDRESS\"";
echo 'StandardInput=tty';
echo 'TTYPath=/dev/tty2';
echo 'TTYReset=yes';
echo 'TTYVHangup=yes';
echo '';
echo '[Install]';
echo 'WantedBy=multi-user.target'; } > "/etc/systemd/system/${DAEMON}.service"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment