Systemd
Type the following command in your terminal to add a systemd service
sudo systemctl edit --force --full dummy.serviceExamples
/etc/systemd/system/api-sysinfo.service
```
[Unit]
Description=API for system informations
[Service]
Type=simple
User=c0r3
ExecStart=/usr/bin/python3 /home/c0r3/.local/bin/api-sysinfo.py
[Install]
WantedBy=multi-user.target
```/etc/systemd/system/transfer-media-lists.service
```
[Unit]
Description=Transfer $HOME/.tmp/*-Liste.txt to orc-industries.de:/sftp/Listen
[Service]
Type=simple
User=c0r3
ExecStart=/home/c0r3/.local/bin/update_media_list.py
[Install]
WantedBy=multi-user.target
```/etc/systemd/system/transfer-media-lists.timer
```
[Unit]
Description=transfer-media-lists.service timer
[Timer]
OnCalendar=*-*-* 03:10:00
Persistent=true
Unit=transfer-media-lists.service
[Install]
WantedBy=multi-user.target
```Last updated