vi /usr/lib/systemd/system/sequoiasql-postgresql.service
[Unit]
Description=SequoiaSQL-PostgreSQL Daemon
After=network.target
[Service]
Type=simple
User=sdbadmin
Environment="LD_LIBRARY_PATH=/opt/sequoiasql/postgresql/lib"
ExecStart=/opt/sequoiasql/postgresql/bin/sequoiasql-postgresql-daemon
ExecStop=/opt/sequoiasql/postgresql/bin/sequoiasql-postgresql-daemon --stop --with-inst
LimitNOFILE=infinity
LimitMEMLOCK=infinity
#(注意:这里的单位是字节,不是KB)
LimitSTACK=2097152
[Install]
WantedBy=multi-user.target