[albatross-users] Installing Albatross

Andrew McNamara andrewm at object-craft.com.au
Thu Mar 10 11:54:25 EST 2011


>Running
>
> 	python setup.py install
>
>Does not install the startup script as this is very much OS dependent.

Yep - and it even varies from distribution version to version - Ubuntu
has moved to upstart, RedHat moved to upstart(?) and is now planning to
move to systemd (FC16). I'm not sure where things stand with Debian -
they were migrating to upstart, but it's taking a long time. OS X and
Solaris have their own launch systems (example rules for which are
included in the "mac" and "solaris" subdirectories).  I thought I had
included upstart rules in the distribution, but I can't find them now.

>For 1.40, it it slightly more complicated as it demands that the user
>
> 	albatross
>
>exists. After adding a group
>
> 	albatross
>
>to /etc/group as group 199, I then did
>
> 	useradd -d /var/tmp -g albatross -c Albatross -u 199 albatross
>
>If anybody has a better idea, let me know. The use of 199 may clash.

No, I think that's your best bet. The requirement for a user is specific
to that init.d script - it probably should be documented in the script
comments.

Note that GNU useradd creates a group for the user if -g isn't specified
and USERGROUPS_ENAB is set in /etc/login.defs (it's set in Ubuntu
and RHEL), so it might be enough to just do:

    useradd -d /var/tmp -c Albatross albatross

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Albatross-users mailing list