ttcd(8)

NAME
ttcd - Terminal Type Control Daemon

SYNOPSIS
ttcd [-c ] [-hV ]

DESCRIPTION

Ttcd - Terminal Type Control Daemon -program for ttc(1).

Ttcd handles the timing for users. When executed, daemon remains running on the background. When user logs in on timed tty a new ttcd daemon is started. It remains running until user has logged off or until ttcd closes user's connection.

When running ttcd for the very first time it is important to give -c option. This option creates ttc directory into /tmp directory when ran for the very first time.

OPTIONS

-c  Removes all the time limit files from /tmp/ttc and of sets users time limits to maximum again. Use this option when running ttcd for the very first time - it creates the ttc directory into /tmp.

    IMPORTANT:

    This option is meant to be run every day when time is 00:00. Maybe, the best way to do that is to put ttcd with -c option in crontab. Like in /var/spool/cron/root. Put there a line which looks like this:

        00 00 * * * /usr/local/bin/ttcd -c

    Then rerun crond. This will run ttcd with -c option every day when time is 00:00 which is exactly what we want.

    NOTE: If you don't run -c option every day on 00:00 time bank system won't work, since it doesn't remove the zero files. This means that users won't be able to login back again, so don't forget to run this command!!

    TIP: If you want to use time bank system longer than just for one day then run this for example every two days to get two day time bank system.

-h  Displays help.

-V  Displays current version.

AFTER INSTALLATION
There are some tasks you have to do right after installation in order for ttc to work. The very first thing to do after installing ttc and ttcd, is to create the directory for the time limit files. Option -c does that, because it is used to clean time limit files. Give as root:

    # ttcd -c

or create /tmp/ttc directory manually by using mkdir. ttcd -c command creates /tmp/ttc directory. I suggest using -c option because it sets the permissions to correct also.

And last, in order to use timing you have to run ttcd on the background. The best place to put ttcd is rc scripts. This could be rc.local, which is started on every boot, so you don't have to start it manually after very boot.

I also suggest to read ttc(1) manual page.

FILES

/etc/ttc.config
    Ttc configuration file.

/var/log/ttcdlog
    Log file.

BUGS
None known. Please report if you find a bug.

AUTHOR
Pekka Riikonen (priikone@poseidon.pspt.fi)

SEE ALSO

ttc(1), crond(8), crontab(1), crontab(5)