This article provides instructions for managing systemd services and viewing logs on Linux. It includes sample configuration files for various applications such as frpc, pyjom_webdav_rclone, clash_fastgithub, tujia_scraper_qq_bot, tempthrottle, and sync_git_repos_syncdog.
[Unit] Description=rclone webdav served on pyjom, after the disk is mounted [Service] User=root ExecStart=/usr/bin/python3 mount_help_and_serve_pyjom.py WorkingDirectory=/root/Desktop/works/restore_sessions [Install] WantedBy=multi-user.target
tempthrottle.service
1 2 3 4 5 6 7 8 9
[Unit] Description=temperature control, cpu temperature under 60 celsius [Service] User=root ExecStart=/usr/bin/python3 tempthrottle_daemon.py WorkingDirectory=/root/Desktop/works/restore_sessions [Install] WantedBy=multi-user.target
[Unit] Description=syncdog (server), to sync things to the cloud (github) Wants=sshd.service Wants=network.target [Service] User=root ExecStart=/usr/bin/python3 syncdog_test.py WorkingDirectory=/root/Desktop/works/sync_git_repos [Install] WantedBy=multi-user.target