/[smeserver]/rpms/e-smith-mysql/sme10/e-smith-mysql-2.6.0-bz11120-mysql.init2systemd.patch
ViewVC logotype

Diff of /rpms/e-smith-mysql/sme10/e-smith-mysql-2.6.0-bz11120-mysql.init2systemd.patch

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

Revision 1.1 by jpp, Tue Dec 8 03:49:44 2020 UTC Revision 1.3 by jpp, Sun Dec 13 22:09:38 2020 UTC
# Line 21  diff -Nur e-smith-mysql-2.6.0.old/root/u Line 21  diff -Nur e-smith-mysql-2.6.0.old/root/u
21  +  +
22  +[Install]  +[Install]
23  +WantedBy=sme-server.target  +WantedBy=sme-server.target
24    diff -Nur e-smith-mysql-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init/10mysql_upgrade e-smith-mysql-2.6.0/root/etc/e-smith/templates/etc/e-smith/sql/init/10mysql_upgrade
25    --- e-smith-mysql-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init/10mysql_upgrade     2020-12-09 23:20:20.435000000 -0500
26    +++ e-smith-mysql-2.6.0/root/etc/e-smith/templates/etc/e-smith/sql/init/10mysql_upgrade 2020-12-09 23:23:42.874000000 -0500
27    @@ -1,9 +1,8 @@
28     #!/bin/sh
29     /usr/bin/mysql_upgrade
30    
31    -P=$(cat /var/run/mariadb/mariadb.pid)
32     /bin/rm /var/run/mariadb/mariadb.pid
33    -kill -TERM $P
34    +/usr/bin/systemctl restart mariadb.service
35     for i in $(seq 1 20);
36     do
37       if [ -f /var/run/mariadb/mariadb.pid ]
38    diff -Nur e-smith-mysql-2.6.0.old/createlinks e-smith-mysql-2.6.0/createlinks
39    --- e-smith-mysql-2.6.0.old/createlinks 2020-12-13 17:05:15.553000000 -0500
40    +++ e-smith-mysql-2.6.0/createlinks     2020-12-13 17:07:11.467000000 -0500
41    @@ -67,9 +67,10 @@
42     }
43    
44     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb");
45    -
46    +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init");
47     # Move all database dumps except for mysql.dump to sql/init
48     event_link("mysql-load-tables", $event, "40");
49    +templates2events("/etc/e-smith/sql/init/10mysql_upgrade", $event);
50    
51     # systemd-specific action mandatory for this package-update event
52     event_link("systemd-reload", $event, "89");


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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