Commit Graph

14 Commits

Author SHA1 Message Date
Zach Malone
7c323bd100 Returning an error if you can't reload a config
It seems like failing to reload and then returning success is incorrect.  This could also be cleaned up by removing reload as an option altogether, forcing users to start|stop|status|condrestart|restart instead.
2015-10-22 20:07:28 -06:00
Bastiaan Bakker
ec8d4b0470 test wether RETVAL is 0 with -eq rather than =. 2015-08-17 17:20:33 +02:00
Bastiaan Bakker
a83a5de41e fix issue #26161: on RedHat family systems touch /var/lock/subsys/$SERVICE to ensure the daemon will be stopped on shutdown. 2015-08-17 11:11:12 +02:00
Erik Johnson
d310dcbb80 Update initscripts, spec file for 0.17.0
This also fixes an issue with sourcing of /etc/rc.d/init.d/functions in
RHEL/CentOS/Fedora/etc., allowing the use of /etc/default/salt to
override environment variables.
2013-09-30 21:09:25 -05:00
Erik Johnson
186c929c51 Fix sanity checks and defaults file sourcing 2013-09-13 12:48:50 -05:00
David Anderson
cabb8230f3 Fix https://github.com/saltstack/salt/issues/6785 2013-09-11 14:14:14 -06:00
David Lindquist
73dc0874c2 service.start salt-minion hangs from console on CentOS
Fixes #4410
2013-04-06 14:59:28 -07:00
Clint Savage
fe22763da0 update the start / kill order with chkconfig 2013-02-13 11:17:33 -07:00
Henrik Holmboe
4fa8e63033 Fix the LSB header
I got complaints from insserv that the LSB header was not compliant. It was
missing required keywords, which must be there even if they are empty.
2013-02-13 16:32:49 +01:00
Henrik Holmboe
464ca9dd1f Allow alternative executables
With this commit it is possible to use virtualenv with the init scripts.

For example, I have this in my /etc/default/salt:

```
SALTMASTER=/srv/venvs/venv-1/bin/salt-master
SALTMINION=/srv/venvs/venv-1/bin/salt-minion
SALTSYNDIC=/srv/venvs/venv-1/bin/salt-syndic
SALTAPI=/srv/venvs/venv-1/bin/salt-api
PYTHON=/srv/venvs/venv-1/bin/python
```
2013-02-13 15:30:13 +01:00
Mike Chesnut
ce3e1ca09c changing locations of python and salt binaries to be variables in init scripts; also changing how daemon functio nis called so it uses the full path 2012-05-10 13:41:50 -07:00
Clint Savage
d45f1ad998 SysV and rpmlint clean up 2012-01-08 20:28:30 -07:00
Thomas S Hatch
0ba610a719 The spec file and init scripts build rpms that run ton f15 and SL6 2011-07-13 23:15:34 -06:00
Thomas S Hatch
5b334894c7 Add rpm stuff 2011-04-02 23:02:48 -06:00