Keroosha.SilencerBot/.infrastructure/silencer-bot.service

27 lines
1.2 KiB
SYSTEMD
Raw Normal View History

2023-04-13 21:40:51 +03:00
[Unit]
# A short human readable title of the unit
2023-04-13 23:59:45 +03:00
Description=Keroosha.SilencerBot Prod
2023-04-13 21:40:51 +03:00
# A list of units whose activations will occur before this unit starts.
After=network.target
[Service]
# Configures the process start-up type for this service unit, one of:
# simple - The process defined in ExecStart= will stay in the foreground while the unit is activated.
# forking - The process defined in ExecStart= will fork a background process and exit right away.
# oneshot - The process will exit right away, use with RemainAfterExit= to ensure the serice is marked as active.
# Consult the documentantion for types (https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=) other options.
Type=simple
# Command with arguments to invoke when the unit is activated.
ExecStart=/opt/apps/Keroosha.SilncerBot/app/Keroosha.SilencerBot
2023-04-13 23:59:45 +03:00
WorkingDirectory=/opt/apps/Keroosha.SilncerBot/app
2023-04-13 21:40:51 +03:00
# Configures under what conditions the unit will be restarted.
2023-04-13 23:59:45 +03:00
User=apps
Restart=always
2023-04-13 21:40:51 +03:00
CPUQuota=15%
2023-04-13 23:59:45 +03:00
KillSignal=SIGINT
Environment=SILENCER_BOT_CONFIG_PATH=/opt/apps/Keroosha.SilncerBot/config/config.json
2023-04-13 21:40:51 +03:00
[Install]
# A list of units who when activated will try and activate this unit
WantedBy=multi-user.target