Skip to content

Instantly share code, notes, and snippets.

@Kirill
Created August 14, 2018 08:32
Show Gist options
  • Save Kirill/4b6245a9bec08f84954aa282a8258ff1 to your computer and use it in GitHub Desktop.
Save Kirill/4b6245a9bec08f84954aa282a8258ff1 to your computer and use it in GitHub Desktop.
/etc/systemd/system/ras.service 1C for Linux
[Unit]
Description=RAS
After=syslog.target
After=network.target
[Service]
Type=forking
WorkingDirectory=/opt/1C/v8.3/x86_64
User=usr1cv8
Group=grp1cv8
OOMScoreAdjust=-100
ExecStart=/opt/1C/v8.3/x86_64/ras cluster --daemon -p 1545
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
TimeoutSec=300
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment