-
Notifications
You must be signed in to change notification settings - Fork 0
Home
sagan edited this page Jul 28, 2025
·
2 revisions
/etc/systemd/system/tgshell.service.
# /etc/systemd/system/tgshell.service
[Unit]
Description=materialmatch
[Service]
Type=exec
User=root
PrivateTmp=true
#Environment="ENV=aabbccddee"
WorkingDirectory=/root
# put tgshell binary in PATH
ExecStart=/bin/bash -c 'source /etc/profile && source ~/.bash_profile && exec tgshell'
Restart=always
RestartSec=5
StandardOutput=journal+console
StandardError=journal+console
[Install]
WantedBy=multi-user.target
Start the service:
systemctl daemon-reload
systemctl enable --now tgshell