Skip to content

Service control script for promtail binary on Linux.

Notifications You must be signed in to change notification settings

caosiyang/promtailctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

promtailctl

This script is used for promtail binary on Linux.

Usage

Put promtail binary and configuration file with the following directory structure:

$ tree
.
├── bin
│   └── promtail
├── conf
│   └── promtail.yaml
└── promtailctl.sh

2 directories, 3 files

Execute script to start/stop/status/restart promtail on any working directory:

$ ./promtailctl.sh start
Starting promtail:      [ OK ] 

$ ./promtailctl.sh status
promtail (pid 6186) is running...

$ ./promtailctl.sh restart
Restarting promtail: 
Stopping promtail:      [ OK ] 
Starting promtail:      [ OK ] 

$ ./promtailctl.sh status
promtail (pid 7624) is running...

$ ./promtailctl.sh stop
Stopping promtail:      [ OK ] 

$ ./promtailctl.sh status
kromtail is stopped

About

Service control script for promtail binary on Linux.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages