I have a restart command hooked to restart() as this:
```
def s_restart(args)
  restart()
  "restart called"
end

# Register a restart command
server.register(description="restart liq", usage="restart", "restart", 
s_restart)
```

But it seems to fail at restarting once shutting down:
```
$ rlwrap socat - UNIX:secousse.sock
restart
restart called
END
```
the logs:

```
2018/08/20 17:51:34 [main:3] Shutdown started!
2018/08/20 17:51:34 [main:3] Waiting for threads to terminate...
2018/08/20 17:51:34 [threads:3] Shuting down thread wallclock_main
[...]
2018/08/20 17:51:34 [clock.wallclock_main:3] Streaming loop stopped.
2018/08/20 17:51:34 [threads:3] Thread "wallclock_main" terminated (0 
remaining).
2018/08/20 17:51:34 [main:3] Threads terminated.
2018/08/20 17:51:34 [threads:3] Shutting down scheduler...
2018/08/20 17:51:34 [threads:3] Scheduler shut down.
2018/08/20 17:51:34 [threads:3] Shutting down queues...
2018/08/20 17:51:34 [threads:3] Thread "generic queue #2" terminated.
2018/08/20 17:51:34 [threads:3] Thread "non-blocking queue #1" terminated.
2018/08/20 17:51:34 [threads:3] Thread "non-blocking queue #2" terminated.
2018/08/20 17:51:34 [threads:3] Thread "generic queue #1" terminated.
2018/08/20 17:51:34 [threads:3] Queues shut down
2018/08/20 17:51:34 [server:3] Unlink test.sock
2018/08/20 17:51:34 >>> LOG END
```

I can live easily off shutdown if need be, but I was using this before to 
automatically restart some scripts upon modification, but I don't fave a 
precise idea since when it broke (could be years..).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/606
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to