rsync_service
May 6, 2026 ยท View on GitHub
Creates and manages the systemd rsync daemon service.
Actions
:create- Writes the systemd unit/defaults file and enables service.:delete- Stops/disables service and removes service artifacts.:start- Starts the service.:stop- Stops the service.:restart- Restarts the service.
Properties
config_path- String, default'/etc/rsyncd.conf'. Path passed torsync --daemon --config.defaults_file- String, platform default. Service environment file path.options- String, default''. Additional daemon command-line options.service_name- String, platform default. Service name,rsyncon Debian andrsyncdelsewhere.
Examples
Create and start the daemon
rsync_install 'default'
rsync_service 'default'
Use a custom config path and daemon options
rsync_service 'custom' do
config_path '/etc/rsyncd-custom.conf'
options '--port=8873'
end
Delete service artifacts
rsync_service 'default' do
action :delete
end