358 Commits

Author SHA1 Message Date
iliajie
6a5b605024 Remove redundant quotes 2022-08-11 19:07:13 +03:00
iliajie
3660bdfcf5 Add support to install multiple versions of Webmin with systemd 2022-08-11 16:23:29 +03:00
iliajie
93ca7a0191 Use -HUP here too 2022-08-05 21:52:04 +03:00
iliajie
8f65e8f47a Fix default stop command for systemd units 2022-07-26 17:47:43 +03:00
iliajie
63a2e3e8bc Revert "Add kill command fall-back (just in case)"
This reverts commit 6a68cc8149.
2022-07-03 02:19:36 +03:00
iliajie
6a68cc8149 Add kill command fall-back (just in case) 2022-07-03 00:03:55 +03:00
iliajie
56a7221290 Fix to check on kill command for systemd unit file 2022-07-02 23:51:12 +03:00
iliajie
673b00f4ad Fix reload command 2022-07-02 23:44:54 +03:00
Jamie Cameron
9bbbf04a9e Use the correct path to the kill command 2022-07-02 13:33:34 -07:00
Ilia
0b43242c44 Fix not to log to systemd while waiting 2022-06-15 01:33:48 +03:00
Ilia
70395aab02 Fix to solve Webmin systemd ongoing issues 2022-06-15 01:00:10 +03:00
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
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