sodface wrote:
> I wouldn't classify /usr/sbin/httpd as a system administration program
> and it's probably never run as either a system administrator or a normal
> user, or at least it drops privileges after it's executed. In other
> words, I don't see how Alpine packagers determined that Apache2's
> binaries should live in /usr/sbin if they were following the FHS so
> either they weren't, or I don't know how to interpret the FHS.
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 to the user who
started it (suid etc.)), but about who (=which role) runs / uses this
application.
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";
}
--------------------
'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=111401
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix