You are not logged in.
I have PS3 Media Server installed and set up with systemd to automatically start up with my computer, however for some reason it's not working as expected. The service is listed as started after boot, but my server doesn't show up on the network, and I need to restart it manually. Once I restart the service everything works as expected. I believe this is most likely due to a malformed .service file.
When I execute
systemctl status pms@ben(after restarting the service) I get this:
pms@ben.service - PS3 Media Server
Loaded: loaded (/usr/lib/systemd/system/pms@.service; enabled)
Active: active (running) since Fri 2014-02-28 23:57:08 EST; 3 days ago
Main PID: 32672 (java)
CGroup: /system.slice/system-pms.slice/pms@ben.service
└─32672 java -Xmx768M -Xss1024k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4...
Mar 04 18:13:18 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:13:18.376 [pool-4-th...29
Mar 04 18:13:20 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:13:20.378 [pool-4-th.../s
Mar 04 18:14:11 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:14:11.279 [StartPlay...29
Mar 04 18:15:45 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:15:45.349 [StopPlayi...29
Mar 04 18:15:47 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:15:47.921 [StartPlay...29
Mar 04 18:17:15 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:17:15.991 [StopPlayi...29
Mar 04 18:17:19 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:17:19.778 [StartPlay...29
Mar 04 18:57:37 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:57:37.997 [StopPlayi...29
Mar 04 18:58:20 arch-desktop PMS.sh[32672]: INFO 2014-03-04 18:58:20.731 [StartPlay...29
Mar 04 19:40:18 arch-desktop PMS.sh[32672]: INFO 2014-03-04 19:40:18.206 [StopPlayi...29
Hint: Some lines were ellipsized, use -l to show in full.Here is the .service file:
[Unit]
Description=PS3 Media Server
After=syslog.target network.target rpcbind.service
[Service]
User=%i
Group=users
WorkingDirectory=/opt/pms/
Type=simple
ExecStart=/opt/pms/PMS.sh
[Install]
WantedBy=multi-user.targetNothing jumps out at me as being the cause, but I'm sure someone here is much better versed in systemd than myself. Anyone have any ideas as to why this needs manual restarting? Thanks a lot!
Offline
What does the status report before the restart (when it has failed)?
Offline
What does the status report before the restart (when it has failed)?
Yeah, I realize that would probably be the useful information to post haha. I'll update the thread next time the computer gets restarted.
Offline
When you do that, post the complete output - truncated lines as above are not much use.
Offline
Ok here's the output after a fresh boot.
ben@arch-desktop:~$ systemctl status pms@ben.service -l
pms@ben.service - PS3 Media Server
Loaded: loaded (/usr/lib/systemd/system/pms@.service; enabled)
Active: active (running) since Wed 2014-03-05 22:20:11 EST; 1min 8s ago
Main PID: 601 (java)
CGroup: /system.slice/system-pms.slice/pms@ben.service
└─601 java -Xmx768M -Xss1024k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djna.nosys=true -classpath update.jar:pms.jar net.pms.PMS
Mar 05 22:20:20 arch-desktop PMS.sh[601]: at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: ERROR 2014-03-05 22:20:21.264 [UPNPHelper] UPNP network exception
Mar 05 22:20:21 arch-desktop PMS.sh[601]: java.net.SocketException: No such device
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at java.net.PlainDatagramSocketImpl.join(Native Method) ~[na:1.7.0_51]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178) ~[na:1.7.0_51]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319) ~[na:1.7.0_51]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at net.pms.network.UPNPHelper$2.run(UPNPHelper.java:384) ~[pms.jar:1.90.1]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Mar 05 22:21:05 arch-desktop PMS.sh[601]: INFO 2014-03-05 22:21:05.376 [UPNPHelper] No IP filter specified, access granted to /192.168.1.42
Mar 05 22:21:05 arch-desktop PMS.sh[601]: INFO 2014-03-05 22:21:05.377 [UPNPHelper] Using the following UUID configured in PMS.conf: 6ed45cde-e5fa-4e6b-a419-306a122aba82Offline