svchelper/services/hello_world/settings
2024-04-23 04:34:16 +02:00

20 lines
939 B
Bash

#!/bin/sh
# If command is defined, it will create and run a service unit
SERVICE_RUN='./hello'
# Working directory
SERVICE_CD="$SERVICE_HOME"
# Create a screen for the service?
SERVICE_SCREEN=1
# Make service private. Sets the owner of all files to the service's, and the permissions for other users to 0 (no access). For more exact control, use a post-setup script.
SERVICE_PRIVATE=1
# Whether to make an attempt to quit the service. Set to 0 if it doesn't need to end
SERVICE_EXIT=1
# If filled out, it will enter this text into the service's screen. If your server needs a command to stop, enter it here.
SERVICE_SCREEN_EXIT_COMMAND='bababooey'
# Inject 10,000 backspace key presses before entering the exit command into screen
SERVICE_SCREEN_EXIT_BACKSPACE=1
# How many seconds to wait before terminating the processes
SERVICE_TIMEOUT_SCREEN_EXIT=30
# How many seconds to wait before killing the processes
SERVICE_TIMEOUT_TERMINATE=30