linux-dev/counter_reader/counter_reader.service

15 lines
812 B
SYSTEMD
Raw Permalink Normal View History

2023-04-28 06:38:13 +00:00
[Unit]
# A short human readable title of the unit
Description=Counter Reader
[Service]
# Configures the process start-up type for this service unit, one of:
# simple - The process defined in ExecStart= will stay in the foreground while the unit is activated.
# forking - The process defined in ExecStart= will fork a background process and exit right away.
# oneshot - The process will exit right away, use with RemainAfterExit= to ensure the serice is marked as active.
# Consult the documentantion for types (https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=) other options.
Type=oneshot
# Command with arguments to invoke when the unit is activated.
# This runs a python script that reads the counter
ExecStart=/usr/bin/python3 /home/inex/dev/Linux/counter_reader/counter_reader.py