CLIP-HPC / goslmailer

GoSlurmMailer - drop in replacement for default slurm MailProg. Delivers slurm job messages to various destinations.
40 stars 6 forks source link

systemd for tgslurmbot (and possibly the other ones) #32

Open hariseldon99 opened 1 year ago

hariseldon99 commented 1 year ago

This works:

[Unit]
Description=TelegramBot for goslmailer
DefaultDependencies=no
Wants=network-online.target
After=network.target network-online.target

[Service]
Type=simple
User=slurm
WorkingDirectory=/
ExecStart=/usr/local/bin/tgslurmbot

[Install]
WantedBy=multi-user.target

Maybe put it in?

Just a suggestion.

pja237 commented 1 year ago

Great idea, thanks for the service file. I'll update the PR with the panic code from the other issue you had and put this in next release zip as a sample.