Skip to content
sagan edited this page Jul 28, 2025 · 2 revisions

Run as systemd service

/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

Clone this wiki locally