bash - Systemd script does ExecStop right after ExecStart -


here's systemd script:

[unit] description=rds services  [service] workingdirectory=/home/rdsdb2/script_rds/ type=oneshot execstart=/bin/bash start_services.sh execstop=/bin/bash stop_services.sh killmode=process  [install] wantedby=multi-user.target 

i can't figure out why executes sequentially (at system start or when start manually) execstart , execstop.

can me?

thanks in advance.

if run

[service] type=simple 

than need: remainafterexit=yes

or use forking:

[service] type=forking 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -