Bug 699283 - Providing native systemd file for upcoming F15 Feature Systemd
Summary: Providing native systemd file for upcoming F15 Feature Systemd
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: asterisk
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeffrey C. Ollie
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-24 21:28 UTC by Jóhann B. Guðmundsson
Modified: 2011-06-27 14:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-27 14:51:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Native systemd service file for asterisk.service (354 bytes, text/plain)
2011-04-24 21:28 UTC, Jóhann B. Guðmundsson
no flags Details

Description Jóhann B. Guðmundsson 2011-04-24 21:28:30 UTC
Created attachment 494565 [details]
Native systemd service file for asterisk.service

Description of problem:

The attached file is a native systemd file for upcoming F15 Feature [1]

Please read [2] on how to packaging and installing systemd Service files.

To learn more about Systemd daemon see [3].

To view old SysV with the new Systemd site by site see for your component see [4]

If you have any question dont hesitate to ask them on this bug report.

1.http://fedoraproject.org/wiki/Features/systemd

2.https://fedoraproject.org/wiki/Systemd_Packaging_Draft

3.http://0pointer.de/public/systemd-man/daemon.html

4.https://fedoraproject.org/wiki/User:Johannbg/QA/Systemd/compatability 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jóhann B. Guðmundsson 2011-04-24 21:30:11 UTC
To test this.

Copy the file into /lib/systemd/system/ directory 

Run systemctl daemon-reload

Then run

systemctl start/stop/restart/enable/disable munin-node.service

Comment 2 Bill Nottingham 2011-04-26 17:35:33 UTC
Moving systemd service RFEs to rawhide.

At this point, it is not appropriate in the Fedora 15 cycle to add these. Furthermore, at this point, we are still finalizing the packaging guidelines to handle SysV -> systemd upgrades.

We therefore request:
- wait until there are packaging guidelines (this will be announced on the devel list). This ensures that upgrades will work smoothly and we/you won't have to do multiple sets of changes.
- work on these sorts of changes for Fedora 16 where necessary, not Fedora 15, as we're trying to fix things for release.
- do *not* change a service from SysV to systemd in an existing release (such as Fedora 15), as this is the sort of behavior change that goes against our update policy, documented as https://fedoraproject.org/wiki/Updates_Policy

Comment 3 Anthony Messina 2011-06-09 04:52:04 UTC
I believe we'll at least need the tmpfile created, won't we?  I just upgraded to F15 and needed to create this myself.

/etc/tmpfiles.d]# cat asterisk.conf
d       /var/run/asterisk       0755 asterisk asterisk

Comment 4 Jóhann B. Guðmundsson 2011-06-27 11:20:01 UTC
What's the current status on this?

We need this in rawhide the sooner the better.

https://fedoraproject.org/wiki/Packaging:Guidelines:Systemd
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
http://fedoraproject.org/wiki/Packaging:Tmpfiles.d

Comment 5 Jeffrey C. Ollie 2011-06-27 14:08:36 UTC
The most recent rawhide package has a native systemd service file.  It's worked well for me in the limited testing that I've done.

Comment 6 Jóhann B. Guðmundsson 2011-06-27 14:35:14 UTC
Which packages contain the native systemd service file and does asterisk follow the packaging guidelines as in pack the legacy syvinit script seperatly and or get's dropped if the intention is not continue maintaining the legacy sysv init script. 

Just make note of that on this bug report and close it rawhide I will open another bug if it does not follow the packaging guidelines.

Comment 7 Jeffrey C. Ollie 2011-06-27 14:51:14 UTC
The service file is in the main package.  The legacy sysvinit script has been dropped from the rawhide version of the package.  AFAIK I followed the packaging guidelines but it wouldn't hurt to have someone double check.


Note You need to log in before you can comment on or make changes to this bug.