You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
426 B
23 lines
426 B
[Unit]
|
|
Description=Init database
|
|
After=mongod.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
WorkingDirectory=/opt/app/findjob
|
|
PrivateUsers=true
|
|
User=root
|
|
Group=root
|
|
# PIDFile=/run/init.pid
|
|
|
|
# ExecStartPre=/usr/bin/rm -f /run/init.pid
|
|
ExecStart=/bin/bash /opt/app/findjob/setup.sh
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
# Send SIGWINCH for graceful stop
|
|
KillSignal=SIGWINCH
|
|
KillMode=mixed
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|