Skip to content

Systemd Script Example

Mike Yuan edited this page Aug 22, 2019 · 3 revisions

Author: Eana Hufwe
Written for EFB 2.0.0b9

Change your running profile, language, and data path accordingly.

/etc/systemd/system/ehforwarderbot.service

[Unit]
Description=EH Forwarder Bot instance
After=network.target
Wants=network.target
Documentation=https://github.com/blueset/ehForwarderBot

[Service]
Type=simple
Environment='EFB_PROFILE=default' 'LANG=en_US.UTF-8' 'PYTHONIOENCODING=utf_8' 'EFB_DATA_PATH=/etc/ehforwarderbot'
ExecStart=/usr/local/bin/ehforwarderbot --verbose --profile=${EFB_PROFILE}
Restart=on-abort
KillSignal=SIGINT
StandardOutput=journal
StardardError=journal

[Install]
WantedBy=multi-user.target
Alias=efb.service
You can’t perform that action at this time.