Public bug reported:

The postint script doesn't enable the systemd service on install, which
leads at least inexperienced systemd users like myself to spend a lot of
time trying to work out why shorewall doesn't start at boot. I'm pretty
sure all the other packages I installed (e.g. apache2, sshd, hostapd,
dovecot, ...) all enable their services automatically.

I believe this is because of the following diff in the DEBIAN/* files:

[swarren@sprint shorewall]$ diff -u debian/extracted/DEBIAN/postinst 
ubuntu-xenial/extracted/DEBIAN/postinst 
--- debian/extracted/DEBIAN/postinst    2016-03-31 10:59:35.000000000 -0600
+++ ubuntu-xenial/extracted/DEBIAN/postinst     2016-01-22 04:10:26.000000000 
-0700
@@ -44,7 +44,6 @@
                     fi
                 elif [ -x "/usr/bin/deb-systemd-invoke" ] && [ -f 
"/lib/systemd/system/shorewall.service" ]
                 then
-                    deb-systemd-helper enable shorewall.service
                     deb-systemd-invoke restart shorewall.service
                 fi
             else
[swarren@sprint shorewall]$ diff -u debian/extracted/DEBIAN/prerm 
ubuntu-xenial/extracted/DEBIAN/prerm 
--- debian/extracted/DEBIAN/prerm       2016-03-31 10:59:35.000000000 -0600
+++ ubuntu-xenial/extracted/DEBIAN/prerm        2016-01-22 04:10:26.000000000 
-0700
@@ -13,7 +13,6 @@
             fi
         elif [ -x "/usr/bin/deb-systemd-invoke" ] && [ -f 
"/lib/systemd/system/shorewall.service" ]
         then
-            deb-systemd-helper disable shorewall.service
             deb-systemd-invoke stop shorewall.service
         fi
         ;;

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: shorewall 5.0.4-1
ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
Uname: Linux 4.4.0-18-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Apr 18 23:43:08 2016
InstallationDate: Installed on 2016-03-03 (47 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160122.2)
PackageArchitecture: all
SourcePackage: shorewall
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.shorewall.conntrack: [inaccessible: [Errno 13] 
Permission denied: '/etc/shorewall/conntrack']
modified.conffile..etc.shorewall.params: [inaccessible: [Errno 13] Permission 
denied: '/etc/shorewall/params']

** Affects: shorewall (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1571972

Title:
  systemd service not enabled on install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shorewall/+bug/1571972/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to