FS#28138 - [netcfg] systemd service file for net-profiles

Attached to Project: Arch Linux
Opened by Davie (daschu117) - Saturday, 28 January 2012, 01:20 GMT
Last edited by Jouke Witteveen (jouke) - Friday, 11 May 2012, 19:40 GMT
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To Jouke Witteveen (jouke)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
There doesn't currently seem to be a way to start network profiles while running systemd, so the attached systemd service file is an attempt to bring this functionality to the netcfg package.

The lazy method would have been just doing a "/etc/rc.d/net-profiles start" like in network.service, but I hope that the better method is using systemd's instantiated services method to have a generic unit file that can be symlinked as different profiles.

It is meant to be used in this fashion (where ${profile_name} is a valid netcfg profile under /etc/network.d):

ln -s /lib/systemd/system/net-profiles@.service /etc/systemd/system/net-profiles@${profile_name}.service

I'm not quite sure how this would be behave if you wanted to use the "menu" profile, but I don't use the menu, nor can I imagine it working under systemd's parallel startup environment.

I hope that this helps and meets any quality requirements. It's my first systemd unit file, so I apologize if I made any mistakes.
This task depends upon

Closed by  Jouke Witteveen (jouke)
Friday, 11 May 2012, 19:40 GMT
Reason for closing:  Implemented
Additional comments about closing:  menu indeed doesn't work. This is because systemd does not provide user i/o.

Loading...