# Создать файл
# /etc/systemd/system/myservice.service
====================================
[Unit]
Description=My Service
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
ExecStart=/usr/local/bin/myservice
#ExecStartPre=
#WorkingDirectory=
#User=holycrap
#Group=holycrap
[Install]
WantedBy=multi-user.target
====================================
# Активация
systemctl enable myservice.service
# Запуск
systemctl start myservice.service
# LOGS
StandardOutput=file:/home/user/log1.log
StandardError=file:/home/user/log2.log
# OR
StandardOutput=append:/home/user/log1.log
StandardError=append:/home/user/log2.log