Skip to content
/ socatd Public

A simple socat daemon script for both sysvinit and systemd.

Notifications You must be signed in to change notification settings

nggit/socatd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Socat Daemon

A simple socat daemon script for both sysvinit and systemd. Supports multiple socat commands and will automatically restart if some are killed for some reason. It is here for convenience in development. Should not be used in production especially with high concurrency.

Directory Structure

/
└── etc
    ├── init.d
    │   └── socatd
    ├── socatd.conf
    └── systemd
        └── system
            └── socatd.service

Installation

Just place the directory structure into your system. Don't forget to make sure that the /etc/init.d/socatd file is executable:

chmod +x /etc/init.d/socatd

Usage

Configuration

The configuration file is in /etc/socatd.conf. It should contain a list of the socat commands you need. Not familiar with socat? The following article is easy to follow https://www.redhat.com/sysadmin/getting-started-socat.

Linux with systemd

After everything is installed, please enable it with:

# systemctl enable socatd.service

Then:

# systemctl start socatd.service

to start.

Linux with sysvinit

# /etc/init.d/socatd start

View the logs

$ cat /var/log/socatd.log

Screenshot

socatd

About

A simple socat daemon script for both sysvinit and systemd.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages