Ilia
|
603b5029bc
|
Add to support Restart= and RestartSec= for systemd
|
2022-06-15 00:06:34 +03:00 |
|
Ilia
|
9c35578d2e
|
Add get_systemd_unit_pid API
|
2022-06-14 23:19:17 +03:00 |
|
Ilia
|
e91303b630
|
Update comment
|
2022-05-18 20:12:08 +03:00 |
|
Ilia
|
77e7db787a
|
Fix systemd get root
|
2022-05-18 20:08:51 +03:00 |
|
Jamie Cameron
|
385ccdf43f
|
Use common function to check init script status, rather than looking for a file
|
2022-05-07 13:08:35 -07:00 |
|
Jamie Cameron
|
1a24cbc8ef
|
Make the error message less confusing when just enabling an action
|
2022-05-07 12:21:43 -07:00 |
|
Jamie Cameron
|
e0ea538216
|
Merge pull request #1628 from webmin/dev/postinstall-procedures
Dev/postinstall procedures
|
2022-04-27 20:50:20 -07:00 |
|
Jamie Cameron
|
0c43244890
|
Just use systemctl if possible
|
2022-04-23 11:51:30 -07:00 |
|
Ilia
|
eeeae8a2f6
|
Fix indent
|
2022-04-23 01:20:32 +03:00 |
|
Ilia
|
9079d6121a
|
Use recommended /etc/systemd/system by default
|
2022-04-23 01:14:19 +03:00 |
|
Ilia Rostovtsev
|
3bd9b9dcbe
|
Add status to systemd services
|
2022-02-19 16:17:23 +03:00 |
|
Jamie Cameron
|
c686cfab4e
|
State can be active (exited) when a service is down https://forum.virtualmin.com/t/apparmor/113924/12
|
2022-02-17 15:43:55 -08:00 |
|
Ilia Rostovtsev
|
682a7910ec
|
Fix indent
|
2022-02-06 21:05:05 +03:00 |
|
Ilia Rostovtsev
|
ef0d07f55b
|
Fix systemd service detection
https://github.com/virtualmin/virtualmin-pro/issues/16#issuecomment-1030869911
|
2022-02-06 21:03:59 +03:00 |
|
Jamie Cameron
|
0e1f7d8d72
|
Cache list of systemd services https://forum.virtualmin.com/t/new-way-to-copy-system-information-data/113433/12
|
2022-01-04 22:41:34 -08:00 |
|
Jamie Cameron
|
2602f8dbe1
|
Don't read init scripts if not looking for one https://forum.virtualmin.com/t/new-way-to-copy-system-information-data/113433/12
|
2022-01-04 22:35:18 -08:00 |
|
Jamie Cameron
|
1e08584c20
|
systemd config file name may be different to unit name
|
2021-09-09 21:52:19 -07:00 |
|
Jamie Cameron
|
7ef3b7bb1e
|
Fix passing of user to systemd
|
2021-08-15 18:25:56 -07:00 |
|
Jamie Cameron
|
2b357cf0f1
|
Add function to enable an action at boot that runs as a non-root user
|
2021-08-15 14:04:05 -07:00 |
|
Ilia Rostovtsev
|
0bc86a3147
|
Check if opts are passed
|
2021-04-27 21:41:11 +03:00 |
|
Ilia Rostovtsev
|
8725fd83fc
|
Add ability to utilize env
|
2021-04-27 16:05:09 +03:00 |
|
Ilia Rostovtsev
|
b64effa5f1
|
Add flexibility in creating systemd services
|
2021-04-27 15:36:56 +03:00 |
|
Jamie Cameron
|
84572640e7
|
Don't totally fail if some units can be read
|
2021-04-03 19:24:42 -07:00 |
|
Ilia Rostovtsev
|
fa2e4c87b7
|
Don't test for non-native services as returned status may be false-positive
|
2021-03-05 21:11:35 +03:00 |
|
Ilia Rostovtsev
|
4b82fe84c4
|
Fix to catch non-native systemd service output
|
2021-03-05 00:48:31 +03:00 |
|
Jamie Cameron
|
fec9b6eec6
|
Fix bug that caused init scripts to be ignored if in systemd mode https://www.virtualmin.com/node/70782
|
2021-03-03 18:07:43 -08:00 |
|
Ilia Rostovtsev
|
37f1d75afd
|
Add trim sub
23adcc8bc0 (r46315725)
|
2021-01-25 23:34:16 +03:00 |
|
Ilia Rostovtsev
|
7fd42f1c3e
|
Add better logic to test unit status
23adcc8bc0
|
2021-01-24 13:51:56 +03:00 |
|
Ilia Rostovtsev
|
64d77ae6e7
|
Fix to lowercase output when testing 23adcc8bc0
|
2021-01-23 15:06:43 +03:00 |
|
Ilia Rostovtsev
|
23adcc8bc0
|
Add support for native is-enabled command
https://sourceforge.net/p/webadmin/bugs/5447/#9431
|
2021-01-23 14:40:49 +03:00 |
|
Jamie Cameron
|
301b994855
|
Check for init script in all dirs https://github.com/webmin/webmin/issues/1282
|
2020-08-13 17:38:01 -07:00 |
|
Jamie Cameron
|
a2dc3f7124
|
Switch all calls to open() to explicitly open for read
|
2020-03-14 17:20:54 -07:00 |
|
Jamie Cameron
|
f8b96e3ccc
|
API to reload an action
|
2019-10-25 20:36:24 -07:00 |
|
Jamie Cameron
|
031aded040
|
API for listing action names generically
|
2019-06-30 18:33:36 -07:00 |
|
Jamie Cameron
|
3f73bd8f1c
|
Use single command to get status
|
2019-06-30 17:22:10 -07:00 |
|
Jamie Cameron
|
8a684d8c41
|
Detect and show unknown status systemd actions https://www.virtualmin.com/node/59115
|
2018-10-20 10:33:26 -07:00 |
|
Jamie Cameron
|
9f869be140
|
Checking for /etc/rc.d makes no sense on systemd systems https://github.com/webmin/webmin/issues/835
|
2018-02-28 19:46:45 -08:00 |
|
Jamie Cameron
|
bd0c2e7128
|
Limit list of unit files to services and skip headers
|
2018-02-25 10:45:56 -08:00 |
|
Jamie Cameron
|
9a350cc2f0
|
Limit output to services and remove legends https://github.com/webmin/webmin/issues/829
|
2018-02-24 17:45:30 -08:00 |
|
Jamie Cameron
|
fd6693ec8c
|
Skip directories under systemd root https://github.com/webmin/webmin/issues/829
|
2018-02-24 13:07:37 -08:00 |
|
Joe Cooper
|
df6c98cdde
|
Probably fix upstart vs systemd detection
|
2017-10-06 19:15:07 -05:00 |
|
Joe Cooper
|
15753acb2e
|
Check for systemd before upstart
|
2017-08-21 16:30:31 -05:00 |
|
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 |
|