Skip to content

Instantly share code, notes, and snippets.

@khorevaa
Forked from Kirill/ras.service
Created October 24, 2018 14:28
Show Gist options
  • Save khorevaa/604fbf4eb1519d2e6013792f25024298 to your computer and use it in GitHub Desktop.
Save khorevaa/604fbf4eb1519d2e6013792f25024298 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