Re: Removing SysV Init Scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux