/[smecontribs]/rpms/smeserver-BackupPC/contribs10/smeserver-BackupPC-0.2-Get-httpd-bkpc-task-running.patch
ViewVC logotype

Annotation of /rpms/smeserver-BackupPC/contribs10/smeserver-BackupPC-0.2-Get-httpd-bkpc-task-running.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Jan 27 16:04:14 2021 UTC (3 years, 9 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-BackupPC-0_2-8_el7_sme, smeserver-BackupPC-0_2-9_el7_sme, smeserver-BackupPC-0_2-7_el7_sme, smeserver-BackupPC-0_2-10_el7_sme, smeserver-BackupPC-0_2-15_el7_sme, smeserver-BackupPC-0_2-13_el7_sme, smeserver-BackupPC-0_2-14_el7_sme, smeserver-BackupPC-0_2-11_el7_sme, smeserver-BackupPC-0_2-12_el7_sme, HEAD
* Wed Jan 27 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-7.sme
- Get-httpd-bkpc-task-running [SME: 11055]

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    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed