ashwinR commited on
Commit
82142f7
1 Parent(s): bb57f2b

Create supervisor.conf

Browse files
Files changed (1) hide show
  1. supervisor.conf +22 -0
supervisor.conf ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [supervisord]
2
+ nodaemon=true
3
+
4
+ [program:redis]
5
+ command=redis-server # command to run redis service
6
+ autorestart=true
7
+ stderr_logfile=/dev/stdout
8
+ stderr_logfile_maxbytes = 0
9
+ stdout_logfile=/dev/stdout
10
+ stdout_logfile_maxbytes = 0
11
+
12
+
13
+ [program:postgres]
14
+ command=/usr/lib/postgresql/12/bin/postgres -D /var/lib/postgresql/12/main/ -c config_file=/etc/postgresql/12/main/postgresql.conf # command to run postgres service
15
+ autostart=true
16
+ autorestart=true
17
+ stderr_logfile=/dev/stdout
18
+ stderr_logfile_maxbytes = 0
19
+ stdout_logfile=/dev/stdout
20
+ stdout_logfile_maxbytes = 0
21
+ user=postadmin
22
+ environment=HOME="/var/lib/postgresql",USER="postadmin"