- Legal notice
- About
- To compile
- To run
- General
LEGAL NOTICE
osswakeup - wake OSS up when the evaluation time has elapsed. Copyright (C) 2000 Roberto Arturo Tena Sánchez
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
ABOUT
osswakeup try to wake up OSS (Open Sound System) when its evaluation time has elapsed, so you don't have to restart it by hand.
If you have the version of OSS (Open Sound System) that stop after the evaluation time has elapsed, this program could be useful for you. But remember, it Works For Me (MR), I'm not sure it will work for you too.
osswakeup reads the messages written in the system log (usualy, "/var/log/messages") and, if it detects that OSS have stoped, it turn it off and on again, in order to wake it up.
TO COMPILE
This is a standard GNU package, so you can do './configure', 'make' and 'make install' right now. See the file "INSTALL" for details.
"configure" takes the following optional flags:
--with-log=path watch the log file in path [default=/var/log/messages]
Use it if the log file where OSS dumps its messages
it's not "/var/log/messages".
Example: './configure --with-log="/var/log/msg"'
--with-message=string wait for the string [default is the standard one]
Use it if the string that OSS dumps is not
"OSS: The evaluation time has elapsed. Please reload the driver."
Example: './configure --with-message="OSS time elapsed"'
--with-soundon=path soundon OSS program is in path [default=soundon]
Use it if the directory where "soundon" script that OSS includes
is not in the PATH enviroment variable, or if the program that
enable OSS is not "soundon". Note that the complete path to the
file (incluiding the name of the file) is required.
Example: './configure --with-soundon="/opt/oss/soundon"'
Example: './configure --with-soundon="/opt/oss/on"'
--with-soundoff=path soundoff OSS program is in path [default=soundoff]
Use it if the directory where "soundoff" script that OSS includes
is not in the PATH enviroment variable, or if the program that
disable OSS is not "soundoff". Note that the complete path to the
file (incluiding the name of the file) is required.
Example: './configure --with-soundoff="/opt/oss/soundoff"'
Example: './configure --with-soundoff="/opt/oss/off"'
--with-root-uid=n root's UID is n [default=0]
Use it if the UID (user identificator) of the user "root" is not
zero (0).
Example: './configure --with-root-uid=99'
If you had to use any configure flag in order to make osswakeup compile, please email the current maintainer (see the file "AUTHORS").
TO RUN
osswakeup need to run with root permissions, because OSS require that (so, you really should review the code before you run it).
Having done "make install", you should keep osswakeup running in background with root permissions. You can do that in one of two ways:
- Make the following sequence everytime you boot up your machine:
$ su - Password: <write root password> # /usr/local/bin/osswakeup &
- Or, add the following two lines in your "/etc/rc.d/rc.local" file (in your
system that file can be in another place, may be "/etc/rc.local"):
/opt/oss/soundon /opt/osswakeup/osswakeup &
GENERAL
The Web page of osswakeup is at: http://osswakeup.sourceforge.net/
osswakeup has been used under the following plattforms:
osswakeup O.S. Distribution libc OSS
1.1 Linux (2.2.12) RedHat (6.1) glibc (2.1.2) osslinux392y-glibc-2213-UP 1.0 Linux (2.2.12) RedHat (6.1) glibc (2.1.2) osslinux392y-glibc-2213-UP
If you want to help to develop osswakeup, the current maintainer will be more than glad to hear about you (see the file "AUTHORS"). You can send bugs to the current maintainer or, if you want to write code, you can open visit the Web page of osswakeup in order to know how to join to the development.
Your always friendly
current maintainer
