1 |
brianr |
1.1 |
diff -urN smeserver-BackupPC-0.2.old/createlinks smeserver-BackupPC-0.2/createlinks |
2 |
|
|
--- smeserver-BackupPC-0.2.old/createlinks 2021-01-27 15:11:29.919889428 +0000 |
3 |
|
|
+++ smeserver-BackupPC-0.2/createlinks 2021-01-27 15:45:25.389380312 +0000 |
4 |
|
|
@@ -46,9 +46,9 @@ |
5 |
|
|
event_link("backuppc-genkey", "post-upgrade", "90"); |
6 |
|
|
#services we need to restart |
7 |
|
|
#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/backuppc"); |
8 |
|
|
- safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
9 |
|
|
- safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-bkpc"); |
10 |
|
|
- safe_symlink("sigusr1", "root/etc/e-smith/events/logrotate/services2adjust/httpd-bkpc"); |
11 |
|
|
+ safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
12 |
|
|
+ safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-bkpc"); |
13 |
|
|
+ safe_symlink("restart", "root/etc/e-smith/events/logrotate/services2adjust/httpd-bkpc"); |
14 |
|
|
|
15 |
|
|
# Create needed empty files |
16 |
|
|
safe_touch("root/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/bkpc_access_log"); |
17 |
|
|
diff -urN smeserver-BackupPC-0.2.old/root/usr/lib/systemd/system/httpd-bkpc.service smeserver-BackupPC-0.2/root/usr/lib/systemd/system/httpd-bkpc.service |
18 |
|
|
--- smeserver-BackupPC-0.2.old/root/usr/lib/systemd/system/httpd-bkpc.service 1970-01-01 01:00:00.000000000 +0100 |
19 |
|
|
+++ smeserver-BackupPC-0.2/root/usr/lib/systemd/system/httpd-bkpc.service 2021-01-27 15:39:14.614858492 +0000 |
20 |
|
|
@@ -0,0 +1,12 @@ |
21 |
|
|
+[Unit] |
22 |
|
|
+Description=BackupPC web page |
23 |
|
|
+After=network.target |
24 |
|
|
+ |
25 |
|
|
+[Service] |
26 |
|
|
+Type=forking |
27 |
|
|
+#PIDFile=/run/bandwidthd.pid |
28 |
|
|
+ExecStart=/var/service/httpd-bkpc/run |
29 |
|
|
+ |
30 |
|
|
+[Install] |
31 |
|
|
+WantedBy=sme-server.target |
32 |
|
|
+ |
33 |
|
|
diff -urN smeserver-BackupPC-0.2.old/root/var/service/httpd-bkpc/run smeserver-BackupPC-0.2/root/var/service/httpd-bkpc/run |
34 |
|
|
--- smeserver-BackupPC-0.2.old/root/var/service/httpd-bkpc/run 2008-08-16 00:56:46.000000000 +0100 |
35 |
|
|
+++ smeserver-BackupPC-0.2/root/var/service/httpd-bkpc/run 2021-01-27 15:59:38.859501564 +0000 |
36 |
|
|
@@ -8,5 +8,5 @@ |
37 |
|
|
[ -e $config ] || exit 1 |
38 |
|
|
|
39 |
|
|
exec 2>&1 |
40 |
|
|
-exec chpst -P /usr/sbin/httpd -f $config -D FOREGROUND |
41 |
|
|
+exec chpst -P /usr/sbin/httpd -f $config -D FOREGROUND& |
42 |
|
|
|