You are not logged in.
Pages: 1
I'm posting this here because there's probably some newbie mistake that I'm making but I don't know what it is. For those who don't know ser2net lets you connect a serial cable to a device and then other computers on your network can access that device over the web. I have used this successfully on Debian/Ubuntu (on this same network and PC) but I'm new to Arch and I can't get this working.
I installed ser2net just fine with pacman -S ser2net. I found and edited the /etc/ser2net.conf file. On Ubuntu I'm accustomed to starting this program with /etc/init.d/ser2net restart but I can't find that folder within Arch. I tried to start the service with systemctl enable ser2net.service. Apparently this isn't how it should be started as I can't get a connection going. When I use systemctl status ser2net.service I get the following:
ser2net.service - Proxy that allows tcp connections to serial ports
Loaded: loaded (/usr/lib/systemd/system/ser2net.service; enabled)
Active: inactive (dead) since Wed 1969-12-31 19:00:10 EST; 43 years 4 months ago
Process: 179 ExecStart=/usr/sbin/ser2net (code=exited, status=0/SUCCESS)
Main PID: 182 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/ser2net.service
Can someone tell me how ser2net should be enabled? I want it to start at boot up.
Offline
Can someone tell me how ser2net should be enabled? I want it to start at boot up.
You accomprished this with systemctl enable ser2net. That is not a start command, however, so the service will not be started until reboot.
You really need to better familiarize yourself with systemd in particular and Arch in general.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
I have tried systemctl enable ser2net and I rebooted afterwards. When the machine came back up I still didn't have a working ser2net and I still got the same output from systemctl status ser2net.
Offline
I have tried systemctl enable ser2net and I rebooted afterwards. When the machine came back up I still didn't have a working ser2net and I still got the same output from systemctl status ser2net.
Really? It still said ser2net has been dead for 43 years and exited successfully? Because those sound like default values for a service that has never been started. What was the output of the enable command? You say you "tried it"; did it succeed or fail? If it succeeded, you should have a symlink to ser2net.service in /etc/systemd/system/multi-user.target.wants/.
How about just starting it yourself to see if it works at all?
# systemctl start ser2netLast edited by Raynman (2013-05-15 15:33:24)
Offline
Starting it myself did not work either. It did change how long the service has been dead. Now it's only been dead a few seconds (since I tried starting it) vs. dead for several years.
Offline
I installed it and started it with the default config:
# systemctl status ser2net
ser2net.service - Proxy that allows tcp connections to serial ports
Loaded: loaded (/usr/lib/systemd/system/ser2net.service; disabled)
Active: active (running) since Wed 2013-05-15 12:10:34 EDT; 1min 11s ago
Process: 15638 ExecStart=/usr/sbin/ser2net (code=exited, status=0/SUCCESS)
Main PID: 15640 (ser2net)
CGroup: name=systemd:/system/ser2net.service
└─15640 /usr/sbin/ser2netSo maybe there's a problem with your edits to the config, or... who knows? Check journal, kernel log, etc.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
All that I did with the config file was to comment out the default banners and connection setups and replace them with my own. Commenting out my new material and restoring the original (followed with a reboot) did not change the situation. I tried checking the journal and I found it to be empty. I tried checking the logs and all it shows is ser2net getting started and stopped. I'm tired of fighting this battle and I need to get this serial server back up and running so I'm going back to my original distro where I can at least get ser2net to run. Many thanks to all who tried to help.
Offline
Pages: 1