16.04, wrong units start order

Bug #1599446 reported by sles
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Hello!

squid uses ldap and mysql for authorization , so I added them to squid dependencies:

### BEGIN INIT INFO
# Provides: squid
# Required-Start: $network $remote_fs $syslog mysql slapd

After=systemd-journald.socket basic.target systemd-journald-dev-log.socket mysql.service remote-fs.target network-online.target nss-lookup.target system.slice sysinit.target slapd.service

And symlinks are created in right order:

S03slapd
S04mysql
S05squid

But really squid is started before mysql (mariadb) and slapd are started:

journalctl -u squid
-- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:44:41 SAMT. --
июл 06 13:10:31 inetgw2 systemd[1]: Starting LSB: Squid HTTP Proxy version 3.x...

journalctl -u slapd
-- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:45:36 SAMT. --
июл 06 13:10:42 inetgw2 systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...

journalctl -u mysql
-- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:45:46 SAMT. --
июл 06 13:10:42 inetgw2 systemd[1]: Starting LSB: Start and stop the mysql database server daemon...
июл 06 13:10:43 inetgw2 mysql[2647]: * Starting MariaDB database server mysqld

i.e. real start order is:
sqiud
slapd
mysql

Expected result is folowing
slapd
mysql
squid

Dan Streetman (ddstreet)
Changed in systemd (Ubuntu):
status: New → Won't Fix
Revision history for this message
sles (slesru) wrote :

Excellent result :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.