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 -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -