Roland0 wrote: 
> It doesn't say "a system administration program", but one "used
> exclusively by the system administrator", which is true for any
> server-type application (a regular user is not supposed to e.g. start a
> database server etc.)
> Also "run as either a system administrator or a normal user, or at least
> it drops privileges after it's executed" is not relevant - we're not
> talking about the technical user (e.g. root, ...) a process runs as
> (which determines privileges etc., and can be different from the user
> who started it (suid etc.)), but about who (=which role) runs / uses
> this application.

Point taken, that's not how I read it but I follow your logic and it
makes sense.

Roland0 wrote: 
> 
> Coming back to LMS:
> Packages from aynwhere but the offical repos should never be in /usr,
> /srv etc.
> The static application files can be either in /opt/ (monolithic, e.q.
> /opt/lms/lib/{AnyEvent,...}, /opt/lms/slimserver.pl - basically the
> untarred no-CPAN), or /usr/local/ (split, e.g. /usr/local/share/lms/,
> /usr/local/bin/slimserver.pl). Personally, I prefer option 1, since it's
> much simpler to handle.
> Variable files are always in /var (/var/log/logitechmediaserver,
> /var/lib/logitechmediaserver/cache) (and not in /opt or /usr/local,
> since these are read-only for applications)
> Config files are either in /etc/logitechmediaserver or
> /usr/local/etc/logitechmediaserver
> 
> Excerpt from my Config.pm:
> > 
Code:
--------------------
  >   > 
  > } elsif ($dir eq 'prefs') {                                                 
                                                                                
                                         
  > 
  > push @dirs, $::prefsdir || "/etc/logitechmediaserver/prefs";                
                                                                                
                                 
  > 
  > } elsif ($dir eq 'log') {                                                   
                                                                                
                                         
  > 
  > push @dirs, $::logdir || "/var/log/logitechmediaserver";                    
                                                                                
                                 
  > 
  > } elsif ($dir eq 'cache') {                                                 
                                                                                
                                         
  > 
  > push @dirs, $::cachedir || "/var/lib/logitechmediaserver/cache";            
                                                                                
                                 
  > 
  > }
  > 
--------------------
> > 

Thanks for the detail.  In option 1, is there a symlink under CPAN/arch
pointing to the compiled modules?


------------------------------------------------------------------------
sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=111401

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to