These two torrent packages includes init scripts for the daemons and
need to be converted to systemd. I have been meaning to convert but
could use some help. If someone can take a look a look and file a
patch, I will be happy to role them in. Thanks
Rahul
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 01:23 PM
Michał Piotrowski
Transmission and Deluge sysv to systemd
Hi,
2011/9/7 Rahul Sundaram <metherid@gmail.com>:
> Hi
>
> These two torrent packages includes init scripts for the daemons and
> need to be converted to systemd. Â*I have been meaning to convert but
> could use some help. Â*If someone can take a look a look and file a
> patch, Â*I will be happy to role them in. Â*Thanks
http://eventhorizon.pl/
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 01:49 PM
"Jóhann B. Guðmundsson"
Transmission and Deluge sysv to systemd
On 09/07/2011 01:12 PM, Rahul Sundaram wrote:
> Hi
>
> These two torrent packages includes init scripts for the daemons and
> need to be converted to systemd. I have been meaning to convert but
> could use some help. If someone can take a look a look and file a
> patch, I will be happy to role them in. Thanks
>
> Rahul
Hum I thought a had converted torrent already anyway deluge into two
seperated daemons from a quick look of it the service and the "web.service"
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 01:55 PM
Michał Piotrowski
Transmission and Deluge sysv to systemd
2011/9/7 "Jóhann B. Guðmundsson" <johannbg@gmail.com>:
> On 09/07/2011 01:12 PM, Rahul Sundaram wrote:
>> Hi
>>
>> These two torrent packages includes init scripts for the daemons and
>> need to be converted to systemd. Â*I have been meaning to convert but
>> could use some help. Â*If someone can take a look a look and file a
>> patch, Â*I will be happy to role them in. Â*Thanks
>>
>> Rahul
>
> Hum I thought a had converted torrent already anyway deluge into two
> seperated daemons from a quick look of it the service and the "web.service"
Yes, conversion into two separate services seems to be the most
appropriate solution.
Here is a service file for transmission
https://github.com/eventhorizonpl/systemd-services/blob/master/transmission-daemon.service
http://eventhorizon.pl/
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 02:18 PM
Michał Piotrowski
Transmission and Deluge sysv to systemd
2011/9/7 "Jóhann B. Guðmundsson" <johannbg@gmail.com>:
> On 09/07/2011 01:55 PM, Michał Piotrowski wrote:
>> Yes, conversion into two separate services seems to be the most
>> appropriate solution.
>>
>> Here is a service file for transmission
>> https://github.com/eventhorizonpl/systemd-services/blob/master/transmission-daemon.service
>
> Â*From the looks of it missing an
>
> PIDFile=/run/transmission-daemon.pid
I added this command to service and pid file isn't created. I'm using F15.
http://eventhorizon.pl/
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 02:29 PM
Michał Piotrowski
Transmission and Deluge sysv to systemd
W dniu 7 września 2011 16:18 użytkownik Michał Piotrowski
<mkkp4x4@gmail.com> napisał:
> 2011/9/7 "Jóhann B. Guðmundsson" <johannbg@gmail.com>:
>> On 09/07/2011 01:55 PM, Michał Piotrowski wrote:
>>> Yes, conversion into two separate services seems to be the most
>>> appropriate solution.
>>>
>>> Here is a service file for transmission
>>> https://github.com/eventhorizonpl/systemd-services/blob/master/transmission-daemon.service
>>
>> Â*From the looks of it missing an
>>
>> PIDFile=/run/transmission-daemon.pid
>
> I added this command to service and pid file isn't created. I'm using F15.
>
I uploaded a new version with this command and changes suggested by
Tomasz Torcz.
--
Best regards,
Michal
http://eventhorizon.pl/
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 02:50 PM
Tomasz Torcz
Transmission and Deluge sysv to systemd
On Wed, Sep 07, 2011 at 02:43:56PM +0000, "Jóhann B. Guðmundsson" wrote:
> >>>> Here is a service file for transmission
> >>>> https://github.com/eventhorizonpl/systemd-services/blob/master/transmission-daemon.service
> >>> From the looks of it missing an
> > I uploaded a new version with this command and changes suggested by
> > Tomasz Torcz.
>
> Your unit file is still incomplete
>
> 2. If using an EnvironmentFile= we add '-' in front of the path.
> 3. Adding the -f has the daemon stuck in foreground leaving the user
> waiting for the command to complete
Note that Type=forking is removed in new version, so it defaults to
Type=simple and DTRT.
(I would prefer dropping sysconfig file altogether, like Lennart suggested
some time ago. And few other. It should work with only ExecStart= and User=
in [Service]).
--
Tomasz Torcz There exists no separation between gods and men:
xmpp: zdzichubg@chrome.pl one blends softly casual into the other.
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 03:04 PM
Rahul Sundaram
Transmission and Deluge sysv to systemd
On 09/07/2011 08:20 PM, Tomasz Torcz wrote:
> (I would prefer dropping sysconfig file altogether, like Lennart
> suggested some time ago. And few other. It should work with only
> ExecStart= and User= in [Service]).
I am fine with dropping the sysconfig file
Rahul
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 03:06 PM
"Jóhann B. Guðmundsson"
Transmission and Deluge sysv to systemd
On 09/07/2011 03:04 PM, Rahul Sundaram wrote:
> On 09/07/2011 08:20 PM, Tomasz Torcz wrote:
>> (I would prefer dropping sysconfig file altogether, like Lennart
>> suggested some time ago. And few other. It should work with only
>> ExecStart= and User= in [Service]).
> I am fine with dropping the sysconfig file
It kinda does not server purpose from my point of view having an
Environment= that gets called once so final would look something like
this...
[Unit]
Description=Transmission-Daemon A bittorrent Client
After=syslog.target network.target
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
09-07-2011, 03:12 PM
"Jóhann B. Guðmundsson"
Transmission and Deluge sysv to systemd
On 09/07/2011 03:06 PM, "Jóhann B. Guðmundsson" wrote:
> On 09/07/2011 03:04 PM, Rahul Sundaram wrote:
>> On 09/07/2011 08:20 PM, Tomasz Torcz wrote:
>>> (I would prefer dropping sysconfig file altogether, like Lennart
>>> suggested some time ago. And few other. It should work with only
>>> ExecStart= and User= in [Service]).
>> I am fine with dropping the sysconfig file
>
> It kinda does not server purpose from my point of view having an
> Environment= that gets called once so final would look something like
> this...
>
> [Unit]
> Description=Transmission-Daemon A bittorrent Client
> After=syslog.target network.target
>
> [Service]
> User=transmission
> ExecStart=/usr/bin/transmission-daemon -f --blocklist -g
> /var/lib/transmission/.config/transmission
> StandardError=syslog
>
> [Install]
> WantedBy=multi-user.target
>
Sorry missed the -T when puzzle this together for that post so ExecStart
should look like...