Template_Config_Files/Linux/Service/Name.service

15 lines
342 B
SYSTEMD
Raw Normal View History

2022-05-29 12:08:52 +00:00
[Unit]
Description=<description about this service>
[Service]
User=<user e.g. root>
WorkingDirectory=<directory_of_script e.g. /root>
ExecStart=<script which needs to be executed>
Restart=always
[Install]
WantedBy=multi-user.target
# Install Location - /etc/systemd/system
# Reload The Service to find files - sudo systemctl daemon-reload