fedora 17: systemctl cannot start mysqld

Reindl Harald h.reindl at thelounge.net
Mon Jun 25 14:50:26 UTC 2012


hm - i can not explain this

but however, you should not overwrite units in /lib/systemd/

* systemctl disable whaterver.service
* create "/etc/systemd/system/whatever.service"
* systemctl enable whaterver.service

if you want to remove your oveeride the same

* disable
* remove unit-file
* enable


Am 25.06.2012 16:45, schrieb fedora:
> Thanks, Harald, for the immediate reply.
> 
> what I did sofar:
> 
> moved /usr/lib/systemd/system/mysqld.service to
> /usr/lib/systemd/system/mysqld.service.orig
> 
> copied your version of the service file into
> /usr/lib/systemd/system/mysqld.service
> 
> systemctl --system daemon-reload
> 
> systemctl start mysqld.servic
> 
> and is still blocked at the same point
> 
> suomi
> 
> 
> On 06/25/2012 04:22 PM, Reindl Harald wrote:
>>
>>
>> Am 25.06.2012 16:18, schrieb fedora:
>>> Hi listers
>>> Sofar (i.e. up to fedora 15) no problem to start mysqld at system startup.
>>>
>>> Since i did a fresh install of fedora 17, no more startup of mysqld at sysemboot.
>>>
>>> I call
>>> systemctl start mysqld.service
>>>
>>> and it hangs forever
>>
>> maybe some side-effect of the dumb still using of mysqld_safe
>> thats why i define since F15 my own mysqld.service which
>> worked perfectly long before any fedora-package and respects
>> service ordering of mysqld-dependent services
>>
>> this one blow is untouched since a long time and working
>> from F15 until F17 unchanged
>>
>> [Unit]
>> Description=MySQL Database
>> Before=postfix.service dovecot.service dbmail-imapd.service dbmail-lmtpd.service dbmail-pop3d.service
>> dbmail-postfix-policyd.service
>>
>> [Service]
>> Type=simple
>> PIDFile=/var/run/mysqld/mysqld.pid
>> ExecStartPre=/usr/libexec/mysqld-prepare-db-dir
>> ExecStart=/usr/libexec/mysqld --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid
>> --socket=/var/lib/mysql/mysql.sock --open-files-limit=30000 --basedir=/usr --user=mysql
>> ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID
>> ExecStop=/bin/kill -15 $MAINPID
>> Restart=always
>> RestartSec=1
>> TimeoutSec=300
>> LimitNOFILE=30000
>> LimitMEMLOCK=infinity
>> OOMScoreAdjust=-1000
>> SysVStartPriority=64
>>
>> [Install]
>> WantedBy=multi-user.target

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120625/05ccbe91/attachment.sig>


More information about the users mailing list