Skip to content

Commit

Permalink
Update telegrambot service to new path
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed May 1, 2024
1 parent 0d1039d commit 7bf2063
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ dependencies = [

[project.scripts]
mmdiary = "mmdiary:main"
mmdiary-telegrambot = "mmdiary.telegrambot.telegrambot_service:main"
14 changes: 11 additions & 3 deletions src/mmdiary/telegrambot/systemd/telegrambot.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ After=network.target

[Service]
Type=simple
StandardInput=tty-force

# replace by your path to env file
EnvironmentFile=/etc/telegrambot.env

# replace by your istallation path
ExecStart=/home/sashacmc/.local/bin/mmdiary-telegrambot

# replace by your User/Group
User=sashacmc
Group=sashacmc
EnvironmentFile=/home/sashacmc/src/my/voice-rec-tools/telegrambot.env
ExecStart=/home/sashacmc/src/my/voice-rec-tools/telegrambot_service.py
StandardInput=tty-force

# change log files if needs
StandardOutput=append:/var/log/user/audio-notes-telegrambot.log
StandardError=append:/var/log/user/audio-notes-telegrambot.log

Expand Down

0 comments on commit 7bf2063

Please sign in to comment.