COURIERLOGGER(1)

πŸ’– NAME πŸ’–

okay so bestie, meet courierlogger β€” it's the Courier syslog wrapper. That's the whole vibe. ✨


πŸŽ€ SYNOPSIS πŸŽ€

courierlogger [-name=title] [-facility=subsystem] [-pid=filename]
              [-user=user] [-group=group] [-droproot]
              [[[-respawn] [-start] program [argument...]] | [-stop] |
              [-restart]]

look at her, all those brackets, she's giving options and she's serving flexibility πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So courierlogger is a wrapper, right? It catches another process's error messages and then forwards every single one of them along to the system logging facility, which we call β€œsyslog”. She's the messenger. She's the middle woman. She's literally just here to relay. πŸ“¬

There are two ways to use courierlogger, and you can pick whichever one matches your main character energy:

  1. Use the shell to pipe another command's standard error, and/or its standard output, to courierlogger's standard input. Classic. Pipes. We love a pipe. 🫢
  2. Alternatively, courierlogger itself can start another process, and arrange to have its standard error captured. She's hands-on like that. She'll babysit the child for you. πŸ’ͺ

In either case, each read line of text is sent as a syslog message. Every line. No cap. πŸ”₯


🌸 OPTIONS 🌸

  • -name=title β€” Use title for sending messages to syslog. title should be the application's name. That's the little name tag your messages wear to the syslog party. 🏷️
  • -facility=subsystem β€” Use subsystem for classifying messages. Your syslog facility uses subsystem to determine which log messages are recorded in which log files. The currently defined subsystems are:
    • auth
    • authpriv
    • console
    • cron
    • daemon
    • ftp
    • kern
    • lpr
    • mail
    • news
    • security
    • user
    • uucp
    • local0
    • local1
    • local2
    • local3
    • local4
    • local5
    • local6
    • local7
Note πŸ’€ Not all of the above facility names are implemented on every system. Check your system's syslog documentation for information on which facility names are allowed, and which log files record the corresponding messages for each facility. basically, ask your own computer, she has opinions πŸ™ˆ
  • -pid=filename β€” Save courierlogger's process ID in filename. The -pid option is required when -start, -stop, -restart are given. If -pid is given without any of these, -start is assumed. one field, so many consequences, icon behaviour honestly
  • -start β€” Run as a daemon. The pid option is required. courierlogger will quietly terminate if another courierlogger process is already running. This is used to make sure that only one instance of program is running at the same time. Specify a different filename with pid to start a second copy of program. she's a monogamist about processes, one at a time, that's the rule πŸ’…
  • -respawn β€” Restart program if it terminates. Normally courierlogger itself will terminate when program finishes running. Use respawn to restart it instead. the come-back-stronger option 😀
  • -restart β€” Send a SIGHUP signal to the courierlogger process (as determined by examining the contents of the file specified by pid), which will in turn send a SIGHUP to its child program. Does nothing if courierlogger is not running. if she's not running, she's simply not going to hear you, that's the tea
Note πŸ’€ program must be originally started with the respawn option if sending it a SIGHUP causes it to terminate.

The same thing may be accomplished by sending SIGHUP to courierlogger itself. ✨

  • -stop β€” Send a SIGTERM signal to courierlogger, which in turn forwards it on to program. If program does not terminate in 8 seconds, kill it with SIGKILL. eight seconds and then she's DONE asking nicely 😭
  • -user=user, -group=group β€” If running as root, change credentials to the given user and/or group, which may be given as names or numeric ids. πŸ”‘

When running a child program, it is started before privileges are dropped (unless the -droproot option is also given). This gives a means of starting a child as root so it can bind to a privileged port, but still have courierlogger run as a non-root user. For the -stop and -restart options to work, you should configure the child program to drop its privileges to the same userid too. ngl this paragraph is doing a lot of heavy lifting, read it twice bestie

  • -droproot β€” Drop root privileges before starting the child process. The -user and -group options specify the non-privileges userid and groupid. Without the -droproot option the child process remains a root process, and only the parent courierlogger process drops root privileges. security girlie behaviour, we stan πŸ›‘οΈ
  • program [ argument ] ... β€” If a program is given program will be started as a child process of courierlogger, capturing its standard error. Otherwise, courierlogger reads message from standard input, and automatically terminates when standard input is closed. give her a buddy or give her a pipe, either works πŸ’–

πŸ”₯ SEE ALSO πŸ”₯


⭐ NOTES ⭐

  1. couriertcpd(1) [set $man.base.url.for.relative.links]/couriertcpd.html

aand that's the page, bestie, you ate it, you understood it, iykyk πŸŽ€

Written by S. Varshavchik., dated 01/11/2026, from the COURIERLOGGER(1) page in section 1 of the manual. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from