Propellor on kfreebsd (Re: how I wrote init by accident)
Hi,
[I don't currently have an OpenID, so was unable to comment directly at
http://joeyh.name/blog/entry/how_I_wrote_init_by_accident/ ]
Propellor also just accidentally works on Debian GNU/kFreeBSD! In the
same way as a Docker container, it can be used as the init for a jail:
(some arguments to the jail command omitted for clarity)
> root@kfreebsd-amd64:~# jail -c jid=2006 host.hostname=example.com command=/usr/bin/propellor
> if ! cabal build; then cabal configure; cabal build; fi
> Building propellor-0.5.1...
> Preprocessing executable 'propellor' for propellor-0.5.1...
> Preprocessing library propellor-0.5.1...
> In-place registering propellor-0.5.1...
> Preprocessing executable 'config' for propellor-0.5.1...
> ln -sf dist/build/config/config propellor
>
>
> fatal: No remote repository specified. Please, specify either a URL or a
> remote name from which new revisions should be fetched.
> Git fetch ... failed
> merge: origin/master - not something we can merge
> running apache2 ... ok
> overall ... ok
I didn't have a Git master set up, but Apache is running; the FreeBSD
jail command lets me spawn 'ps aux' inside it:
> root@kfreebsd-amd64:~# jail -m jid=2006 command=/bin/ps aux
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 25807 0.0 0.0 10468 1396 ? R+ 02:57 0:00 /bin/ps aux
> www-data 25797 0.0 0.0 362204 4996 ? S 02:57 0:00 /usr/sbin/apache2 -k start
> www-data 25796 0.0 0.0 362204 4996 ? S 02:57 0:00 /usr/sbin/apache2 -k start
> root 25793 0.0 0.0 73032 4084 ? Ss 02:57 0:00 /usr/sbin/apache2 -k start
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
Reply to: