You are not logged in.

#1 2018-04-10 19:42:09

jbenge1
Member
From: Az
Registered: 2018-04-09
Posts: 151

[SOLVED]multiple netctl services

I am wondering if it is possible to have multiple files in /etc/netctl such that if I want to connect to a different wireless network I can just type something like
netctl start otherwifiprofile

Last edited by jbenge1 (2018-04-12 18:19:36)


"Dr. Madden, why don't the natural numbers include 0?" -me
"....... Take a philosophy course" -Dr. Madden

Offline

#2 2018-04-10 19:44:09

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]multiple netctl services

What happened when you tried?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-04-10 20:14:58

jbenge1
Member
From: Az
Registered: 2018-04-09
Posts: 151

Re: [SOLVED]multiple netctl services

Job for netctl@otherwifi.service failed because the control process exited with error code.
See "systemctl status netctl@otherwifi.service" and "journalctl -xe" for details.

the output of systemctl status netctl@otherwifi.service is
● netctl@otherwifi.service - Networking for netctl profile otherwifi
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-04-10 13:12:53 MST; 34s ago
     Docs: man:netctl.profile(5)
  Process: 1178 ExecStart=/usr/lib/netctl/network start otherwifi (code=exited, status=1/FAILURE)
Main PID: 1178 (code=exited, status=1/FAILURE)

Apr 10 13:12:52 zenbook-justin systemd[1]: Starting Networking for netctl profile otherwifi...
Apr 10 13:12:53 zenbook-justin network[1178]: Starting network profile 'otherwifi'...
Apr 10 13:12:53 zenbook-justin network[1178]: The interface of network profile 'otherwifi' is already up
Apr 10 13:12:53 zenbook-justin systemd[1]: netctl@otherwifi.service: Main process exited, code=exited, status=1/FAILURE
Apr 10 13:12:53 zenbook-justin systemd[1]: netctl@otherwifi.service: Failed with result 'exit-code'.
Apr 10 13:12:53 zenbook-justin systemd[1]: Failed to start Networking for netctl profile otherwifi.


"Dr. Madden, why don't the natural numbers include 0?" -me
"....... Take a philosophy course" -Dr. Madden

Offline

#4 2018-04-11 06:54:39

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED]multiple netctl services

man netctl

"start" is not the proper command here ...

Offline

#5 2018-04-11 07:33:30

boojum
Member
From: /dev/null
Registered: 2013-09-23
Posts: 44
Website

Re: [SOLVED]multiple netctl services

jbenge1 wrote:

I am wondering if it is possible to have multiple files in /etc/netctl such that if I want to connect to a different wireless network I can just type something like
netctl start otherwifiprofile

Do you mean roaming (starting/stopping profiles as you move between wireless networks)? Have a look at netctl wiki, this part in particular.

Or did you mean starting/stopping profiles manually? Then you want:

netctl stop oldwireless
netctl start newwireless

Bare in mind that the above will not enable wireless profile(s) at boot. Consult

seth wrote:
man netctl

...and netctl wiki for more indepth info.

Offline

Board footer

Powered by FluxBB