[squeak-dev] referring to a cli command in a unix systemd unit file

tim Rowledge tim at rowledge.org
Mon Sep 12 17:01:28 UTC 2022



> On 2022-09-11, at 9:57 PM, Tobias Pape <Das.Linux at gmx.de> wrote:
> 
> Even better yet:
> 
> $ cat /etc/default/squeaksource
> WEB_PORT=8888
> IMAGE_PATH=/path/to/ss.img
> STARTUP_SCRIPT=/path/to/run.st
> VM_OPTS=-vm-sound-null -vm-display-null -mmap 1024m -eden 16m
> 
> and in the Service:
> 
> EnvironmentFile=/etc/default/squeaksource
> ExecStart=/path/to/vm/squeak $VM_OPTS $IMAGE_PATH $STARTUP_SCRIPT $WEB_PORT
> 
> Because then you do not need to "systemctl daemon-reload" each time you change one of the thins in the env fileā€¦

That sounds brilliant! Thank you

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Fractured Idiom:- RESPONDEZ S'IL VOUS PLAID - Honk if you're Scots




More information about the Squeak-dev mailing list