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
|
||||
Reference in New Issue
Block a user