Skip to content

Solaris SlimServer 6.x SMF manifest

December 11, 2005

If you are are Slim Devices
fan (easily the best home MP3 device on the market), you can run the
software quite nicely on Solaris. The SlimServer software is written
in Perl – so it runs on almost anything. However – there are a couple
of Perl modules that require a C compiler to install. You can do some
hacking and use gcc, but your best bet is download the Studio 11
compilers (the default Perl makefiles assume you are using the Sun C

Here is a service manifest that I hacked together for starting
SlimServer ( I am a SMF newbie, so feel free to offer improvements

[Update: Thanks to tips from Stephen and Dave, the associated service method is no longer required. The process can be directly started with the exec method – and :kill can be used to shut it down].

<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type=’manifest’ name=’slimserver’>
<service name=’application/slimserver’ type=’service’ version=’1′>
<create_default_instance enabled=’false’/>
<dependency name=’name-services’ grouping=’require_all’ restart_on=’none’ type=’service’>
<service_fmri value=’svc:/milestone/name-services’ />
<dependency name=’network’ grouping=’require_all’ restart_on=’none’ type=’service’>
<service_fmri value=’svc:/milestone/network’ />
name=’local-filesystems’ type=’service’ restart_on=’none’>
<service_fmri value=’svc:/system/filesystem/local’ />
<exec_method type=’method’ name=’start’
exec=’/usr/local/slimserver/ -daemon’
timeout_seconds=’30’ />
<exec_method type=’method’ name=’stop’
timeout_seconds=’30’ />
<stability value=’Unstable’ />
<loctext xml:lang=’C’>Slim Server</loctext>
<doc_link name=’SlimDevices Home’
uri=’’ />
uri=’’ />

  1. December 12, 2005 10:17 am

    Nice. I recommend changing your stop method to “:kill”; otherwise, your current implementation may kill slimserver instances running in non-global zones (if run in the global zone). This change means that your method script can be simplified to being start only. (That is, no case statement.)
    &mdash; Stephen

  2. December 14, 2005 8:40 am

    Even more, you don’t really need the script. I’d written a manifest myself a while back which I hadn’t published, but as Stephen suggested, just use :kill as the stop method and, additionally, invoke the perl directly as the start method, e.g.:
    exec=’/usr/local/slimserver/ –daemon’
    Start scripts are so 80’s 😉

Comments are closed.

%d bloggers like this: