Commit Graph

396 Commits

Author SHA1 Message Date
Ilia
9c35578d2e Add get_systemd_unit_pid API 2022-06-14 23:19:17 +03:00
Ilia
597682f9ae Fix to use absolute path 2022-06-08 20:42:36 +03:00
Ilia
64bad303b5 Paths in unit service file must be configurable 2022-06-03 21:45:28 +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
Ilia
d865737a45 Fix to hide scripts that mustn't be run directly; fix bugs 2022-04-25 17:04:01 +03:00
Ilia
7e632d7769 This is atboot.pl not updateboot.pl 2022-04-24 11:21:13 +03:00
Jamie Cameron
0c43244890 Just use systemctl if possible 2022-04-23 11:51:30 -07:00
Ilia
468945a74d Don't assume default 2022-04-23 15:48:56 +03:00
Ilia
da3b4c6296 Clear systemd and do uninstall silently 2022-04-23 02:45:04 +03:00
Ilia
4b9895b334 Add sec check 2022-04-23 02:20:55 +03:00
Ilia
dd1927b54c Drop new file 2022-04-23 02:18:16 +03:00
Ilia
6846bfdda4 Update boot properly 2022-04-23 02:17:25 +03:00
Ilia
d3ad394bd8 Always update systemd script 2022-04-23 02:03:09 +03: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
05ed0be573 Fix systemd script generation for manual installs 2022-04-23 01:06:24 +03:00
Ilia
b70a9f9917 Enable only when switching to new systemd mode 2022-04-22 23:43:44 +03:00
Ilia
c466274443 Switch to creating centralized startup service in setup.sh 1/2 2022-04-22 17:17:01 +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
Ilia Rostovtsev
0462945632 Update translations 3/3 2021-11-18 22:13:17 +03:00
Jamie Cameron
1e08584c20 systemd config file name may be different to unit name 2021-09-09 21:52:19 -07:00
Jamie Cameron
20db4a29cf Show config file name 2021-09-09 21:50:17 -07:00
Jamie Cameron
73aa2eac76 Japanese update 2021-08-17 20:54:02 -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
b5cb27d0fa Add prefs info files 2021-02-28 21:14:24 +03: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
Ilia Rostovtsev
4c4b647096 Fix to add extra line breaks (sections) to language files 2020-12-27 21:15:36 +03:00
Jamie Cameron
c6345ec1e9 Norwegian translation update from Stein-Askel Basma 2020-12-06 11:00:27 -08:00
Ilia Rostovtsev
7ad9321b8d Fix to print descriptions and commands consistently 2020-09-08 12:48:09 +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