Removing SysV Init Scripts

Reindl Harald h.reindl at thelounge.net
Sat Jan 14 00:33:10 UTC 2012



Am 14.01.2012 01:17, schrieb Sérgio Basto:
> On Sat, 2012-01-14 at 00:32 +0100, Reindl Harald wrote:
>>
>> what exactly is the problem to convert a existing
>> sysv-init script to a systemd-unit 
> 
> I don't know convert ? , took hours ? 

what about looking at existing ones?
no,, it takes some minutes for 90% of all services

> I don't have time to understand how systemd works , have you any magic
> script to covert it ? or o quick todo? 

i did also not have time last summer and had to learn
because half of the distribution was not converted

so here is one service file
what is complex here?

cat /lib/systemd/system/dbmail-imapd.service
[Unit]
Description=DBMail IMAP Server
After=mysqld.service
Before=dovecot.service

[Service]
Type=simple
ExecStart=/usr/sbin/dbmail-imapd -D
Restart=always
RestartSec=1

[Install]
WantedBy=multi-user.target
________________________

and even starting some script (in my case a php-one with an
infinite loop is easy)

cat /lib/systemd/system/serverstatus.service
[Unit]
Description=Serverstatus
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/php /usr/local/serverstatus/serverstatus.php
Restart=always
RestartSec=1
TimeoutSec=15
Nice=19
IOSchedulingClass=3
User=wwwcron
Group=apache

[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/devel/attachments/20120114/70ef5e98/attachment.sig>


More information about the devel mailing list