Search
10:22:32
Xof
help! how do I run sbcl in systemd without it quitting straight away?
10:30:43
scymtym
Xof: do you want the process to run continuously or just until it's done?
10:31:47
scymtym
i use [Unit] Description=… [Service] ExecStart=/absolute-path-to-dumped-image args
10:32:10
Xof
do you have a custom toplevel that sleeps or something?
10:32:20
Xof
I was using the standard toplevel with the repl
10:32:44
Shinmera
Xof: I just have a (loop (sleep 1))
10:32:56
scymtym
yeah, /absolute-path-to-dumped-image args waits until signaled and does not read from standard input
10:33:24
Shinmera
scymtym: It does quit for me.
10:33:44
Shinmera
Or do you mean you have a custom dump that sleeps?
10:34:31
scymtym
i can imagine that the default toplevel dies when it tries to read from standard input
10:35:07
Shinmera
Xof: You might also want something like Restart=on-abort if you want it to restart on a crash.
10:36:11
Shinmera
And setting User to not have it run as root, WorkingDirectory, etc. Systemd is a beast, for better or worse.
10:37:22
Xof
Yes. I have those bits. (I'm using systemctl --user so it's picking up the right user account, with loginctl enable-linger <user>)
13:50:05
stassats
Xach: it has no declaration at all, i guess adding one would help
13:54:15
stassats
adding a declaration makes (sb-ext:string-to-octets 10) warn, but constraint propagated types are not conflicting
14:18:07
stassats
constraint propagation to the alternative branch appears to be doing approximately nothing
14:22:25
specbot
https://bugs.launchpad.net/bugs/309124
14:53:38
stassats
got (defun foo (x) (if (typep x 'number) 10 (1+ x))) to warn, wonder what will that break
14:53:59
stassats
at least it builds (after a little bit of massaging)
14:55:24
stassats
and declaring the type of sb-ext:string-to-octets makes (unless (stringp object) (sb-ext:string-to-octets object)) warn as well
15:22:39
Xach
I mistype octets-to-string as string-to-octets all the time. I don't know why. A warning would help me.
15:26:29
stassats
it'll benefit other stuff as well
15:27:02
stassats
and i have no idea why type-difference is so complicated while simply doing (type-intersection x (type-negation y)) is enough
15:27:15
stassats
i'll just do that and wait for pfdietz to break it
15:41:52
stassats
i don't often use octets-to-string, but i mistype char-code/code-char all the time
15:44:14
stassats
Xof: but (loop (sleep 1)) wastes energy!
15:45:23
stassats
i'd use something like (sleep most-positive-fixnum) or (sb-thread:join-thread some-thread)
15:45:29
stassats
(loop (sleep most-positive-fixnum)) that is
15:53:20
flip214
I mostly settle for (loop (sleep 3600)), this way an strace shows that this sleep is intentional and not an integer-became-negative bug
15:55:55
stassats
(sb-kernel:%vector-raw-bits (coerce "notabug" 'simple-base-string) 0) => 29120988003463022