gharris999 wrote: 
> Actually, I think you found a bug in my sysv init script.  Change line
> 108 in the script:
> 
> # sudo nano /etc/init.d/lms
> > 
Code:
--------------------
  >   > 
  >             --chuid ${SLIM_USER}?nogroup \
  > 
  > -- to --
  > 
  >             --chuid ${SLIM_USER}:${SLIM_GROUP} \
  > 
  > 
--------------------
> > 
> I'll look at the install script and see what's causing this problem. 
> I am curious as to why the upstart script isn't working for you,
> though.  Would you be willing to try re-installing and helping me
> debug this?  If yes, let me know here and I'll give you some
> shortcuts.

hi, yes - i've also figured ?nogroup was the culprit ... thank you !
I think i have found out another problem ... file 'lms' in defaults
(/etc/defaults directory) when default installation is done has
real_time_priority set to infinity which is causing service start script
to fail (line 102) .. when i change variable fro infinity to some number
it starts fine:

Code:
--------------------
     * Starting LMS branch public/7.9 git code
  /etc/init.d/lms: 102: [: Illegal number: infinity
--------------------


However , i still think it is using sysv and not ubuntu startup (d-bus ?
am not knowledgable about that)... what is the benefit of one vs. the
other ? when i had lms installed from nightly's i could never achieve
that lms server is restarted from the web interface (had to ssh to
machine and restart service) and now i can and in addition 'nice'
priority never worked from web interface (server priority setting in
advance/performance) but now i can set it in /etc/default/lms file and
it works fine.

So here is the process i went through after your post and messages i got
(hopefully it helps us figure out how to improve it):
1. tried to uninstall with --remove and got msg that lms is not
installed ? 
2. i installed it again (did not add --sysv switch)
3. installation seems to have gone ok, but server is not started and
last messages looks like it thinks it is using D-BUS ('Run the command
"systemctl start lms.service" to start the service.') ... however when i
tru 'sudo systemctl lms ' and press tab i get message in bash that it
could not connect to D-Bus.... no clue ?
4. net net - i THINK  (how do i check ?) it is using still --sysv - but
i seem to be very very happy with that approach (apart from having to
edit /etc/init.d/lms to fix nogroup thingy and ensuring RT_PRIORITY is
not set to 'infinity' ....

any advice appreciate and thank you VERY MUCH !


Code:
--------------------
    zh@acus:~/Downloads/test/config-lms-git-service$ sudo 
./config-lms-git-service.sh --remove
  config-lms-git-service.sh
  Logitech Media Server git code Daemon setup:
  Getting Defaults..
  
===============================================================================
  This script REMOVES the LMS branch public/7.9 git code "lms" service,
  running under the "lms" account.
  
  The local repo at /usr/local/share/lms/server WILL BE DELETED.
  
  The data dir /var/lib/lms_data and logs at /var/log/lms_log
  WILL BE DELETED along with the lms account.
  
  
  Press Enter to continue, or ctrl-c to abort..
  Error: lms is not installed.  Cannot remove lms..
  zh@acus:~/Downloads/test/config-lms-git-service$ ll /var/lib/lms
  lms/      lms_data/ 
  zh@acus:~/Downloads/test/config-lms-git-service$ ll /var/lib/lms
  lms/      lms_data/ 
  zh@acus:~/Downloads/test/config-lms-git-service$ ll /var/lib/lms
  lms/      lms_data/ 
  zh@acus:~/Downloads/test/config-lms-git-service$ ll /var/lib/lms
  lrwxrwxrwx 1 root root 28 Jan 31 10:26 /var/lib/lms -> 
/var/lib/lms_data/public/7.9/
  zh@acus:~/Downloads/test/config-lms-git-service$ ll /var/lib/lms_data/
  total 16
  drwxr-xr-x  4 lms  nogroup 4096 Jan 31 01:23 ./
  drwxr-xr-x 76 root root    4096 Jan 31 10:26 ../
  drwxr-xr-x  2 lms  nogroup 4096 Jan 31 01:23 Plugins/
  drwxr-xr-x  3 lms  nogroup 4096 Jan 31 01:23 public/
  zh@acus:~/Downloads/test/config-lms-git-service$ 
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo 
./config-lms-git-service.sh
  config-lms-git-service.sh
  Logitech Media Server git code Daemon setup:
  Getting Defaults..
  
===============================================================================
  This script installs the LMS branch public/7.9 git code as the "lms" service,
  running under the "lms" account.
  
  The source for the git clone will be 
"https://github.com/Logitech/slimserver.git";.
  
  The destination for the public/7.9 code will be "/usr/local/share/lms/server".
  
  
  Press Enter to continue, or ctrl-c to abort..
  Cleaning /usr/local/share/lms/server..
  HEAD is now at c126e33 When using full text search we need to maintain the 
FTS' sort order when
  Removing Plugins
  Removing slimserver.pl_debug.sh
  Updating /usr/local/share/lms/server..
  Already up-to-date.
  Checking out branch public/7.9 to /usr/local/share/lms/server..
  Already on 'public/7.9'
  Your branch is up-to-date with 'origin/public/7.9'.
  Updating /usr/local/share/lms/server..
  Already up-to-date.
  Stopping lms service..
  Creating /etc/default/lms..
  Creating /var/log/lms_log/public/7.9..
  Creating /var/log/lms_log/public/7.9/server.log..
  Creating log rotate script /etc/logrotate.d/lms..
  Linking /var/lib/lms to /var/lib/lms_data/public/7.9..
  Linking /var/log/lms to /var/log/lms_log/public/7.9..
  Linking /usr/local/share/lms/server/Plugins to /var/lib/lms_data/Plugins..
  Creating systemd unit file /lib/systemd/system/lms.service..
  Creating /usr/local/share/lms/server/slimserver.pl_debug.sh
  Creating /etc/init.d/lms..
  Creating /usr/local/sbin/lms-debug.sh..
  Creating /usr/local/sbin/lms-update.sh..
  Creating /usr/local/sbin/lms-switch-branch.sh..
  Disabling lms sysv service control links..
  Enabling /lib/systemd/system/lms.service systemd unit file..
  Starting lms service..
  
===============================================================================
  Done. Logitech Media Server git code Daemon is ready to run as a service 
(daemon).
  
  Run the command "systemctl start lms.service" to start the service.
  
  Run the command "/usr/local/sbin/lms-debug.sh" to start the service
  in startup debugging mode.  Check the /var/log/lms/debug.log
  file for messages.
  
  To update the local git repo with the latest channges from
  https://github.com/Logitech/slimserver.git, run the command:
  
  /usr/local/sbin/lms-update.sh
  
  Run the command "/usr/local/sbin/lms-switch-branch.sh" to see a list
  of the available branches in the /usr/local/share/lms/server local repo.  
Then run the command
  "/usr/local/sbin/lms-switch-branch.sh" "branchname" using one of the
  branches listed to switch to that branch.
  
  Enjoy!
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo service lm
  lms         lm-sensors  lms.org     
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo service lm
  lms         lm-sensors  lms.org     
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo service lm
  lms         lm-sensors  lms.org     
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo service lms start
  * Starting LMS branch public/7.9 git code                                     
                                                                                
                                                                              
/etc/init.d/lms: 102: [: Illegal number: infinity
  start-stop-daemon: user 'lms?nogroup' not found
  [fail]
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo nano /etc/init.d/lms
  lms      lms.bak  lms.org  
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo nano /etc/init.d/lms
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo nano /etc/default/lms
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo nano /etc/init.d/lms
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo service lms start
  * Starting LMS branch public/7.9 git code                                     
                                                                                
                                                                       [ OK ] 
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo service lms 
  [branchname]   git-clean      git-update     list-branches  rescan         
restart        start          status         stop           switch-branch  
  zh@acus:~/Downloads/test/config-lms-git-service$ sudo service lms ^C
  
--------------------


------------------------------------------------------------------------
gahabana's Profile: http://forums.slimdevices.com/member.php?userid=62064
View this thread: http://forums.slimdevices.com/showthread.php?t=103033

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to