linux - Why is my new service script parameter ignored? -
i added optional parameter /etc/init.d/postgresql specify directory. if no directory specified, command applied clusters.
running script in /etc/init.d executes commands correctly:
cd /home/pi; clear # - omit /etc/init.d/postgresql start ps aux | grep pg /etc/init.d/postgresql stop dev_5433 ps aux | grep pg # - stops dev_5433 cluster, [dev_5433 cluster stopped, good][2]
... running script service not:
cd /home/pi; clear # - omit /etc/init.d/postgresql start ps aux | grep pg service postgresql stop dev_5433 ps aux | grep pg # - stops clusters, should stop dev_5433 cluster [stops clusters instead of one][4]
why seem ignore new parameter when execute service commands?
Comments
Post a Comment