Commit Graph

90 Commits

Author SHA1 Message Date
Jamie Cameron
2b1ee8bc77 Also unmask units when enabling https://www.virtualmin.com/node/45624 2017-03-28 07:56:35 -07:00
Jamie Cameron
99f73bd80f Filter out template units, which cause the subsequent call to systemctl show to fail https://github.com/webmin/webmin/issues/430: 2017-02-24 16:04:21 -08:00
Jamie Cameron
15e2f4a114 Remove the .service suffix https://github.com/webmin/webmin/issues/430 2016-10-14 16:54:07 -07:00
Jamie Cameron
8ab998b123 Fix creation of new actions 2016-09-30 15:36:47 -07:00
Jamie Cameron
f308101805 Also use list-unit-files to find disabled units https://github.com/webmin/webmin/issues/430 2016-09-24 15:55:43 -07:00
Jamie Cameron
f4f9b32db0 Always disable or enable if the action exists 2016-06-05 16:21:59 -07:00
Jamie Cameron
004c9194f3 Suppress errors from systemctl show https://sourceforge.net/p/webadmin/bugs/4756/ 2016-05-25 14:58:34 +02:00
Jamie Cameron
baef8aba0f If a systemd service suggests using journalctl to get more logs, do it 2016-02-05 17:36:22 -08:00
Jamie Cameron
9297c3e7f0 A bosystemdction in 'static' state is enabled https://github.com/webmin/webmin/issues/270 2015-11-30 17:36:22 -08:00
Jamie Cameron
ea7d904d90 If the runlevel couldn't be detected any other way, assume 3 http://virtualmin.com/node/37100 2015-05-22 13:52:34 -07:00
Jamie Cameron
8f0d32b764 More changes needed to support launchd 2015-05-03 10:14:03 -07:00
Jamie Cameron
ac238e37d1 More work on launchd support for MacOS X 2015-05-02 15:33:36 -07:00
Jamie Cameron
79e2bf69b4 Show at-boot setting 2015-04-28 21:34:52 -07:00
Jamie Cameron
c1105d0ac5 Add support for deleting launchd agents 2015-04-26 17:22:38 -07:00
Jamie Cameron
fdffa9ee42 Use consistent comment type 2015-04-26 16:52:34 -07:00
Jamie Cameron
cb008888bf Launchd action creation now working 2015-04-26 16:30:27 -07:00
Jamie Cameron
4b2ba48e58 Work on launchd support 2015-04-25 22:00:07 -07:00
Jamie Cameron
1a1deef64a UNit names can have spaces or funny characters at the start 2015-04-16 19:04:25 -07:00
Jamie Cameron
132ea695bc UNit names can have spaces or funny characters at the start 2015-04-16 19:03:50 -07:00
Jamie Cameron
ad46361cb0 for systemd services, the name may have .service appended 2015-03-21 17:11:19 -07:00
Jamie Cameron
895e5bbbd1 Don't fail just because some system actions can't be looked up https://sourceforge.net/p/webadmin/bugs/4522/ 2014-12-16 21:43:57 -08:00
Jamie Cameron
f73389554d Systemd units with @ in the name are legit, like virtualmin's clamd@scan 2014-09-13 16:06:21 -07:00
Jamie Cameron
7e3261c43c If systemd also shows init.d actions, prioritize the latter 2014-08-31 20:35:01 -07:00
Jamie Cameron
a7641290ad Systemd service -.slice isn't useful to show 2014-08-09 09:13:15 -07:00
Jamie Cameron
31cc6f4da5 Add function to get the curent state of some action 2014-08-08 21:53:09 -07:00
Jamie Cameron
b255d8e5b0 Add API function to deletee a bootup action 2014-02-05 16:31:37 -08:00
Jamie Cameron
f656880d38 Use correct systemd path on OpenSuSE 13 https://github.com/webmin/webmin/issues/128 2014-01-26 13:49:37 -08:00
Jamie Cameron
e09b463f4f Use full path to sh http://sourceforge.net/p/webadmin/bugs/4328/ 2013-12-04 22:30:47 -08:00
Jamie Cameron
81ec930529 On SuSE, add directives indicating that commands are one-off 2013-10-19 09:57:29 -07:00
Jamie Cameron
2ce07fc25f Skip mandrake-specific init scripts 2013-05-05 21:37:45 -07:00
Jamie Cameron
0f166011ad Reload systemd after making changes https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3611902&group_id=17457 2013-04-28 16:32:01 -07:00
Jamie Cameron
ac051d0ab1 Systemd doesn't support re-direction in commands, so run via a shell 2013-04-28 16:01:27 -07:00
Jamie Cameron
ebc41abfc4 Clean environment variables before running init scripts 2013-02-19 22:07:26 -08:00
Jamie Cameron
c3bdd1d922 Force use of english for status messages https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3604428&group_id=17457 2013-02-12 20:46:01 -08:00
Jamie Cameron
e3bc97e962 Reduce timeout 2013-02-02 17:28:48 -08:00
Jamie Cameron
05c6ba3713 Add timeout for init script status https://www.virtualmin.com/node/25206 2013-02-02 09:41:08 -08:00
Jamie Cameron
a7ae86635d Allow forcing of init system https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3598222&group_id=17457 2012-12-27 10:58:13 -08:00
Jamie Cameron
81393d5878 Handle chkconfig failure in a different way https://www.virtualmin.com/node/24544 2012-12-15 10:06:01 -08:00
Jamie Cameron
57a1a5d0cf Use more reliable backquote function to capture output 2012-10-09 16:33:31 -07:00
Jamie Cameron
dda0c0e7a9 Allow mass stop and start of mixed-mode actions https://github.com/webmin/webmin/issues/43 2012-10-09 15:53:39 -07:00
Jamie Cameron
ae7755bee9 Support systemd when starting services 2012-10-08 10:33:54 -07:00
Jamie Cameron
12b5600f9c Scan systemd units 100 at a time, to avoid long command line https://sourceforge.net/tracker/index.php?func=detail&aid=3571943&group_id=17457&atid=117457# 2012-09-26 12:54:09 -07:00
Jamie Cameron
d5a6fb4885 Use systemd scripts in /etc/systemd/system in preference, if they exist https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3571837&group_id=17457 2012-09-26 11:45:25 -07:00
Jamie Cameron
a5747234de If insserv fails, create S links directly https://www.virtualmin.com/node/22942 2012-08-03 14:35:25 -07:00
Jamie Cameron
385b40900d Use initctl instead of service command 2012-07-30 17:31:12 -07:00
Jamie Cameron
b437091f2b Ubuntu 12.04 doesn't have insserv, but it does use upstart 2012-04-26 22:15:39 -07:00
Jamie Cameron
886aa07ce7 Handle case where systemd is not running https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3481271&group_id=17457 2012-01-31 14:01:37 -08:00
Jamie Cameron
95ed14f3a6 Prevent double-display of init scripts 2011-12-20 15:45:28 -08:00
Jamie Cameron
998202cc8d More work on systemd / Fedora 16 support 2011-12-20 15:41:50 -08:00
Jamie Cameron
443c2117c2 More work on systemd support 2011-12-17 22:42:25 -08:00