Skip to content

Instantly share code, notes, and snippets.

@MakarovCode
Created June 5, 2021 03:29
Show Gist options
  • Save MakarovCode/6e8483d4fda767c618f2d5d68f69a9c6 to your computer and use it in GitHub Desktop.
Save MakarovCode/6e8483d4fda767c618f2d5d68f69a9c6 to your computer and use it in GitHub Desktop.
Ruby Script SystemCtl Daemon File
[Unit]
Description=gps_client
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/home/ubuntu/motosmart/current/lib
ExecStart=ruby /home/ubuntu/motosmart/current/lib/ruby_script.rb
User=ubuntu
Group=ubuntu
UMask=0002
RestartSec=1
Restart=on-failure
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=gps_client
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment