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
Post a Comment