Bug 764619 (GLUSTER-2887) - Providing native systemd service file for glusterd and glusterfsd
Summary: Providing native systemd service file for glusterd and glusterfsd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2887
Product: GlusterFS
Classification: Community
Component: glusterd
Version: pre-2.0
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: Vijay Bellur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-06 17:25 UTC by Jóhann B. Guðmundsson
Modified: 2014-11-09 11:30 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-11-09 11:30:54 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
native systemd service files for glusterd (328 bytes, text/plain)
2011-05-06 14:25 UTC, Jóhann B. Guðmundsson
no flags Details
native systemd service files for glusterfsd (326 bytes, text/plain)
2011-05-06 14:26 UTC, Jóhann B. Guðmundsson
no flags Details
native systemd service files for glusterfsd (261 bytes, text/plain)
2011-10-27 12:41 UTC, Jóhann B. Guðmundsson
no flags Details
native systemd service files for glusterd (264 bytes, text/plain)
2011-10-27 12:44 UTC, Jóhann B. Guðmundsson
no flags Details

Description Jóhann B. Guðmundsson 2011-05-06 14:26:35 UTC
Created attachment 482

Comment 1 Jóhann B. Guðmundsson 2011-05-06 17:25:49 UTC
Providing native systemd service file which replace the old sysv on linux platform see http://www.freedesktop.org/wiki/Software/systemd for details

To test this copy the attached files to /lib/systemd/system on Fedora 15 or newer 

run "systemctl daemon-reload" to let systemd pick up the native systemd service files.

To start an service run 

systemctl start glusterd.service ( this will also start glusterfsd.service )

To restart an service run 

systemctl restart glusterd.service 

systemctl restart glusterfsd.service 

To stop an service run 

systemctl stop glusterd.service 

systemctl stop glusterfsd.service 

To enable or disable a service at boot up run

systemctl enable/disable glusterd.service

systemctl enable/disable glusterfsd.service

I think this is enough for the first round on this report I'm expecting bunch of questions from you guys now there are no environmental option pick up from the environment file when starting the daemon ( /etc/sysconfig/glusterd ) in the service files because well the one of them is a at least obsolete and it's an question if you just want that handled by downstream.

Comment 2 Amar Tumballi 2011-09-30 06:32:23 UTC
Will work on this after 3.3.0 release.

Comment 3 Jóhann B. Guðmundsson 2011-10-27 12:41:07 UTC
Created attachment 712


Updating to current status of systemd...

Removed syslog.target no longer necessary.
Changed PID Path from /var/run to /run
Removed EnvironmentFile /etc/sysconfig/glusterfsd since users/administrators should copy the unit file from /lib/systemd/system to /etc/systemd/system and edit/add the relevant options from that sysconfig file there.

Comment 4 Jóhann B. Guðmundsson 2011-10-27 12:44:24 UTC
Created attachment 713


Updating to current status of systemd...

Removed syslog.target no longer necessary.
Changed PID Path from /var/run to /run
Removed EnvironmentFile /etc/sysconfig/glusterfsd since users/administrators
should copy the unit file from /lib/systemd/system to /etc/systemd/system and
edit/add the relevant options from that sysconfig file there.

Removed an extra '=' line in the Wants line

Comment 5 Niels de Vos 2014-11-09 11:30:54 UTC
This should be fixed in current releases. The extras/systemd/ directory in the sources contain the systemd-unit files. These get included in the RPMs when buidling on a distribution that uses systemd.

In case the systemd units do not work as they should, please file a new bug report dedicated to that particular issue.

Thanks!


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