Initial commit
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s
This commit is contained in:
22
roles/configure_cms/files/cms-log.service
Normal file
22
roles/configure_cms/files/cms-log.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=CMS Log Server Daemon
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=cmsuser
|
||||
Group=cmsuser
|
||||
WorkingDirectory=/srv/cms
|
||||
Environment=PYENV_SHELL=bash
|
||||
Environment=PYENV_ROOT=/srv/cms/.pyenv
|
||||
Environment=LOGNAME=cmsuser
|
||||
Environment=VIRTUAL_ENV=/srv/cms
|
||||
ExecStart=/srv/cms/bin/cmsLogService 0
|
||||
ExecStop=/usr/bin/kill $MAINPID
|
||||
Restart=on-failure
|
||||
StandardInput=null
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
22
roles/configure_cms/files/cms-rank.service
Normal file
22
roles/configure_cms/files/cms-rank.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=CMS Ranking Server Daemon
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=cmsuser
|
||||
Group=cmsuser
|
||||
WorkingDirectory=/srv/cms
|
||||
Environment=PYENV_SHELL=bash
|
||||
Environment=PYENV_ROOT=/srv/cms/.pyenv
|
||||
Environment=LOGNAME=cmsuser
|
||||
Environment=VIRTUAL_ENV=/srv/cms
|
||||
ExecStart=/srv/cms/bin/cmsRankingWebServer
|
||||
ExecStop=/usr/bin/kill $MAINPID
|
||||
Restart=on-failure
|
||||
StandardInput=null
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
24
roles/configure_cms/files/cms@.service
Normal file
24
roles/configure_cms/files/cms@.service
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=CMS Resources Service Daemon for Contest ID %i
|
||||
Requires=cms-log.service postgresql.service
|
||||
After=network.target cms-log.service postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=cmsuser
|
||||
Group=cmsuser
|
||||
WorkingDirectory=/srv/cms
|
||||
Environment=PYENV_SHELL=bash
|
||||
Environment=PYENV_ROOT=/srv/cms/.pyenv
|
||||
Environment=LOGNAME=cmsuser
|
||||
Environment=VIRTUAL_ENV=/srv/cms
|
||||
ExecStart=/srv/cms/bin/cmsResourceService -a %i
|
||||
ExecStop=/usr/bin/kill $MAINPID
|
||||
Restart=on-failure
|
||||
RestartSec=60s
|
||||
StandardInput=null
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user