mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-13 19:27:02 +05:30
Add mkr/bin service
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
37c1b1b065
commit
c1d85b4eaa
2 changed files with 23 additions and 1 deletions
22
systemd_units/mkr-bin.service
Normal file
22
systemd_units/mkr-bin.service
Normal file
|
@ -0,0 +1,22 @@
|
|||
[Unit]
|
||||
Description=mkr/bin service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Restart=on-abort
|
||||
Type=simple
|
||||
User=bot
|
||||
Group=bot
|
||||
Environment=BIN_MONGO_CSTRING=mongodb://localhost:27017/bin-store BIN_PORT=4000
|
||||
WorkingDirectory=/home/bot/bin
|
||||
ExecStart=/usr/bin/npm start
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
KillMode=mixed
|
||||
KillSignal=SIGQUIT
|
||||
TimeoutStopSec=5s
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
ProtectSystem=full
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -8,7 +8,7 @@ function prettyPrint {
|
|||
}
|
||||
|
||||
# Grab all service names
|
||||
declare -a services=('caddy' 'daas' 'gitea' 'mirror-bot' 'mirror-bot-2' 'pyrobud' 'uno-bot' 'walls-bot')
|
||||
declare -a services=('caddy' 'daas' 'gitea' 'mirror-bot' 'mirror-bot-2' 'mkr-bin' 'pyrobud' 'uno-bot' 'walls-bot')
|
||||
|
||||
# Now loop through each service and install it
|
||||
for service in "${services[@]}"; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue