File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,21 @@ If your distribution doesn't include this
36
36
script with PostgreSQL and you are using this on your own, please update
37
37
` etc/postgresql-setup/upgrade/postgresql.conf ` to reflect your setup.
38
38
39
+ ### Running without systemd/init system
40
+ Your setup might not include systemd as the init system or include any
41
+ init system at all. This would be the case in most of the base container images
42
+ for example. This script will try to compensate by parsing systemd
43
+ service file in preconfigured path directly. By default the path is
44
+ ` /lib/systemd/system ` .
45
+
46
+ If there is no systemd service file, or for whatever reason the script is unable
47
+ to find valid PostgreSQL data directory, you can still provide PostgreSQL data
48
+ directory path manually by using ` --datadir ` argument. For example when
49
+ initializing new data directory use ` ./postgresql-setup --initdb --datadir=/my/path ` .
50
+
51
+ This feature is most beneficial when using this script inside container images,
52
+ as it gives you the most control with least dependencies.
53
+
39
54
## Maintainer notes
40
55
Be careful about paths. Your might need to tweak paths either in configure
41
56
files, or in code based on your environment.
You can’t perform that action at this time.
0 commit comments